Go to the documentation of this file.
6 #ifndef __PZ80EMU_JUMP__
7 #define __PZ80EMU_JUMP__
16 void _jr(
struct z80 *, uint8_t *,
int,
bool);
z80 memory class
Definition: memory.h:19
word pc
Definition: z80.h:53
void _djnz_n(struct z80 *cpu, uint8_t *memory)
decrements B, then jumps to the provided memory address if B is 0
Definition: jump.c:15
void _jp_flag_nn(struct z80 *, uint8_t *, int, bool)
jumps to N if provided conditions are met
Definition: jump.c:82
void _jp_nn(struct z80 *, uint8_t *)
jumps to an arbitrary memory address
Definition: jump.c:62
z80 CPU data structure and functions
void _jr(struct z80 *cpu, uint8_t *memory, int flag, bool n)
adds n to PC if provided conditions are met
Definition: jump.c:37
void _jp_flag_nn(struct z80 *cpu, uint8_t *memory, int flag, bool n)
jumps to N if provided conditions are met
Definition: jump.c:82
word bc
Definition: z80.h:55
uint8_t l
low order byte
Definition: z80.h:31
void _jr(struct z80 *, uint8_t *, int, bool)
adds n to PC if provided conditions are met
Definition: jump.c:37
uint8_t h
high order byte
Definition: z80.h:32
struct word::@0 B
Combination of High and Low bytes in correct order for endianness.
void _jp_reg(word *, struct z80 *)
jumps to the value stored in reg
Definition: jump.c:109
void _jp_reg(word *reg, struct z80 *cpu)
jumps to the value stored in reg
Definition: jump.c:109
word af
Definition: z80.h:54
void _jp_nn(struct z80 *cpu, uint8_t *memory)
jumps to an arbitrary memory address
Definition: jump.c:62
uint16_t W
16-bit pair
Definition: z80.h:22
__BEGIN_DECLS void _djnz_n(struct z80 *, uint8_t *)
decrements B, then jumps to the provided memory address if B is 0
Definition: jump.c:15
type to deal with endianness and access of high/low bits
Definition: z80.h:21
#define IS_SET(val, bit)
Determines if a bit is set or not.
Definition: utils.h:17