outi

Output and increment

Decrements B, writes the byte at (HL) to the port addressed by BC, then increments HL.

2 bytes16 cycles

SZHP/VNC ?●????
  • ● depends on the result
  • ? undefined (do not rely on it)

Forms

  • outi

    Decrements B and writes the value pointed to by HL to the port whose 16-bit address is in BC. Then increments HL. Sets the zero flag if B becomes zero, and resets it otherwise.

        .org 0x8000
        ld hl, source
        ld b, 2
        ld c, 1
        outi
        halt
source: .byte 42, 7