Changes

Z80

4 bytes added, 08:24, 4 September 2024
/* Oddities */
* RST instructions are just a CALL instruction to a fixed address baked in the instruction itself
* Despite what the syntax of the instructions JP (HL/IX/IY) suggests, PC will be loaded with the contents of the register itself, not the indexed value. Those instructions should be understood as JP HL/IX/IY
* IN r,(C) and OUT (C) ,r instructions syntax is misleading as these instructions actually use the full 16-bit port address contained in BC
* While the syntax of ADD, ADC and SBC instructions all explicitely mention the A register, the SUB instruction does not mention it
* The 16-bit commands ADD HL,ss, ADC HL,ss and SBC HL,ss exist but not the command SUB HL,ss
13,173
edits