Check INI, INIR, IND, INDR description in Z80 chapter
tomaz opened this issue · 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++