#include <stdbool.h>
#include <stdint.h>
#include "z80.h"
Go to the source code of this file.
|
| __BEGIN_DECLS void | _djnz_n (struct z80 *, uint8_t *) |
| | decrements B, then jumps to the provided memory address if B is 0 More...
|
| |
| void | _jr (struct z80 *, uint8_t *, int, bool) |
| | adds n to PC if provided conditions are met More...
|
| |
| void | _jp_nn (struct z80 *, uint8_t *) |
| | jumps to an arbitrary memory address More...
|
| |
| void | _jp_flag_nn (struct z80 *, uint8_t *, int, bool) |
| | jumps to N if provided conditions are met More...
|
| |
| void | _jp_reg (word *, struct z80 *) |
| | jumps to the value stored in reg More...
|
| |
◆ _djnz_n()
| __BEGIN_DECLS void _djnz_n |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory |
|
) |
| |
decrements B, then jumps to the provided memory address if B is 0
- Parameters
-
| cpu | z80 CPU object |
| memory | pointer to allocated memory |
◆ _jp_flag_nn()
| void _jp_flag_nn |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory, |
|
|
int |
flag, |
|
|
bool |
n |
|
) |
| |
jumps to N if provided conditions are met
- Parameters
-
| 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.
◆ _jp_nn()
| void _jp_nn |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory |
|
) |
| |
jumps to an arbitrary memory address
- Parameters
-
| cpu | z80 CPU object |
| memory | pointer to allocated memory |
◆ _jp_reg()
| void _jp_reg |
( |
word * |
reg, |
|
|
struct z80 * |
cpu |
|
) |
| |
jumps to the value stored in reg
- Parameters
-
| reg | register containing value to jump to |
| cpu | z80 cpu object |
◆ _jr()
| void _jr |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory, |
|
|
int |
flag, |
|
|
bool |
n |
|
) |
| |
adds n to PC if provided conditions are met
- Parameters
-
| 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.