diff --git a/API/Z80.h b/API/Z80.h index 4233629..772fc5d 100644 --- a/API/Z80.h +++ b/API/Z80.h @@ -325,8 +325,7 @@ typedef struct { * been fetched. * * This callback is optional and must be set to @c Z_NULL when not in - * use. It is invoked before the instruction copies the A register into - * the I register. */ + * use. It is invoked before executing the instruction. */ Z80Notify ld_i_a; @@ -334,8 +333,7 @@ typedef struct { * been fetched. * * This callback is optional and must be set to @c Z_NULL when not in - * use. It is invoked before the instruction copies the A register into - * the R register. */ + * use. It is invoked before executing the instruction. */ Z80Notify ld_r_a; @@ -363,10 +361,10 @@ typedef struct { * parameter and must return the opcode to be executed instead of the * trap. If the function returns a trap (i.e., @ref Z80_HOOK), * the emulator will do nothing, so the trap will be fetched again - * unless the function has modified the PC register or replaced the - * trap in memory with another opcode. Also note that returning a trap - * does not revert the increment of the R register performed before - * each opcode fetch. */ + * unless the function has modified @ref Z80::pc or replaced + * the trap in memory with another opcode. Also note that returning a + * trap does not revert the increment of @ref Z80::r performed + * before each opcode fetch. */ Z80Read hook; @@ -376,10 +374,12 @@ typedef struct { * use. Only those instructions with the @c 0xED prefix that behave the * same as two consecutive @c nop instructions are considered illegal. * The function receives the illegal opcode as the second parameter and - * must return the number of clock cycles taken by the instruction. At - * the time of invoking this callback, and relative to the start of the - * instruction, only the R register has been incremented (twice), so PC - * still contains the memory address of the @c 0xED prefix. */ + * must return the number of clock cycles taken by the instruction. + * + * At the time of invoking this callback, and relative to the start of + * the instruction, only @ref Z80::r has been incremented + * (twice), so @ref Z80::PC still contains the memory address + * of the @c 0xED prefix. */ Z80Illegal illegal;