PZ80emu
0.1
|
Functions | |
void | _djnz_n (struct z80 *cpu, uint8_t *memory) |
decrements B, then jumps to the provided memory address if B is 0 More... | |
void | _jr (struct z80 *cpu, uint8_t *memory, int flag, bool n) |
adds n to PC if provided conditions are met More... | |
void | _jp_nn (struct z80 *cpu, uint8_t *memory) |
jumps to an arbitrary memory address More... | |
void | _jp_flag_nn (struct z80 *cpu, uint8_t *memory, int flag, bool n) |
jumps to N if provided conditions are met More... | |
void | _jp_reg (word *reg, struct z80 *cpu) |
jumps to the value stored in reg More... | |
void _djnz_n | ( | struct z80 * | cpu, |
uint8_t * | memory | ||
) |
decrements B, then jumps to the provided memory address if B is 0
cpu | z80 CPU object |
memory | pointer to allocated memory |
void _jp_flag_nn | ( | struct z80 * | cpu, |
uint8_t * | memory, | ||
int | flag, | ||
bool | n | ||
) |
jumps to N if provided conditions are met
cpu | z80 CPU object |
memory | pointer to allocated block of memory |
flag | CPU flag to operate on |
n | whether the flag must be set or unset |
_jp_flag_nn() will jump to the user provided value from memory in the event that the state of the provided flag matches the provided value of N.
void _jp_nn | ( | struct z80 * | cpu, |
uint8_t * | memory | ||
) |
jumps to an arbitrary memory address
cpu | z80 CPU object |
memory | pointer to allocated memory |
jumps to the value stored in reg
reg | register containing value to jump to |
cpu | z80 cpu object |
void _jr | ( | struct z80 * | cpu, |
uint8_t * | memory, | ||
int | flag, | ||
bool | n | ||
) |
adds n to PC if provided conditions are met
cpu | z80 CPU object |
memory | pointer to allocated block of memory |
flag | CPU flag to operate on |
n | whether the flag must be set or unset |
_jr() will add the user provided value from memory to PC in the event that the state of the provided flag matches the provided value of N.