PZ80emu
0.1
|
Functions | |
void | _ret_flag (struct z80 *cpu, uint8_t *memory, int flag, bool n) |
returns from a call based on state of CPU flag More... | |
void | _ret (struct z80 *cpu, uint8_t *memory) |
return from a call More... | |
void | _pop (word *reg, struct z80 *cpu, uint8_t *memory) |
pop a value off the stack into a register More... | |
void | _call_flag_nn (struct z80 *cpu, uint8_t *memory, int flag, bool n) |
make a function call based on status of CPU flags More... | |
void | _call_nn (struct z80 *cpu, uint8_t *memory) |
calls the function at memory address NN More... | |
void | _push (word *reg, struct z80 *cpu, uint8_t *memory) |
pushes the value of a register to the stack More... | |
void | _rst (struct z80 *cpu, uint8_t *memory, uint16_t pc) |
saves PC to the stack, then sets a new PC More... | |
void _call_flag_nn | ( | struct z80 * | cpu, |
uint8_t * | memory, | ||
int | flag, | ||
bool | n | ||
) |
make a function call based on status of CPU flags
cpu | z80 CPU object |
memory | pointer to allocated memory block |
flag | CPU flag to check before calling function |
n | state of checked flag |
void _call_nn | ( | struct z80 * | cpu, |
uint8_t * | memory | ||
) |
calls the function at memory address NN
cpu | z80 CPU object |
memory | pointer to allocated memory block |
pop a value off the stack into a register
reg | register to pop value from stack into |
cpu | z80 CPU object |
memory | pointer to allocated memory block |
pushes the value of a register to the stack
reg | register to push |
cpu | z80 CPU object |
memory | pointer to allocated memory |
void _ret | ( | struct z80 * | cpu, |
uint8_t * | memory | ||
) |
return from a call
cpu | z80 CPU object |
memory | pointer to allocated memory block |
void _ret_flag | ( | struct z80 * | cpu, |
uint8_t * | memory, | ||
int | flag, | ||
bool | n | ||
) |
returns from a call based on state of CPU flag
cpu | z80 CPU object |
memory | pointer to allocated memory block |
flag | CPU flag to check for condition |
n | state of CPU flag |