tomaz / zx-next-dev-guide

Guide for ZX Spectrum Next assembler developer. Available as free to download PDF from releases page, or printed coil bound book at https://bit.ly/zx-next-assembler-dev-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tomaz opened this issue · comments

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