tomaz/zx-next-dev-guide

Check INI, INIR, IND, INDR description in Z80 chapter

Closed this issue · 0 comments

tomaz commented

page 19

The INI, INIR, IND and INDR instructions use BC after decrementing B, and the OUTI, OTIR,
OUTD and OTDR instructions use BC before decrementing.
I believe that's the other way? ie.

  ld bc,0x1234
  ini  ; (HL) = in (bc), b--, hl++
  outi ; --b, out (new_bc) = (hl), hl++

from Discord