Changes

Z80

6 bytes removed, 13:58, 2 September 2024
/* Oddities */
* Despite having different names and opcodes, RETI and RETN are in fact the exact same instruction
* RST instructions are just a CALL instruction to a fixed address baked in the instruction itself
* Contrarily to Despite what the syntax of the instructions JP (HL/IX/IY) suggest, 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 (C) and OUT (C) 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
13,173
edits