The INX instruction

The INX (Increment Register Pair) instruction is used to increase the value of the specified 16-bit register pair by 1.

The INX instruction format

InstructionDescription
INX B Increments the 16-bit value stored in the BC register pair by 1.
INX D Increments the 16-bit value stored in the DE register pair by 1.
INX H Increments the 16-bit value stored in the HL register pair by 1.
INX SP Increments the 16-bit value stored in the stack pointer (SP) by 1.

Usage example

; Author: Evgeny Sergeevich Dovgopolov

main:
    mvi     b, 0BBh  ; Load the hexadecimal value BBh into register B
    mvi     c, 0FFh  ; Load the hexadecimal value FFh into register C
    inx     b        ; Increase the value of the BC register pair by 1

    hlt              ; Stop program execution

Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".

Processor status flags

S
Yes
Z
Yes
AC
Yes
P
Yes
CY
Yes