Go to the documentation of this file.
6 #ifndef __PZ80EMU_ROTATE__
7 #define __PZ80EMU_ROTATE__
14 void _rlc(uint8_t,
struct z80 *);
struct bus * bus
Definition: z80.h:66
#define CARRY
bit position of CARRY flag
Definition: z80.h:72
int run(struct z80 *cpu, uint8_t *memory, long runcycles, bool s_flag)
Definition: z80.c:66
z80 memory class
Definition: memory.h:19
void _rrca(struct z80 *cpu)
register A 8-bit right rotate with carry
Definition: rotate.c:31
struct memory * memory_new(void)
Definition: memory.c:85
z80 CPU data structure and functions
void display_mem(uint8_t *memory)
display the current memory contents to STDOUT
Definition: display.c:144
void _rlc(uint8_t n, struct z80 *cpu)
8-bit rotation to the left
Definition: rotate.c:16
uint8_t l
low order byte
Definition: z80.h:31
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 _rrca(struct z80 *)
register A 8-bit right rotate with carry
Definition: rotate.c:31
void(* memory_free)(void *self)
Definition: memory.h:21
#define RESET(val, bit)
Resets a bit.
Definition: utils.h:31
word af
Definition: z80.h:54
void display_registers(struct z80 *cpu)
display the current register state to STDOUT
Definition: display.c:177
__BEGIN_DECLS void _rlc(uint8_t, struct z80 *)
8-bit rotation to the left
Definition: rotate.c:16
long(* memory_load)(void *self, const char *filename)
Definition: memory.h:27
#define IS_SET(val, bit)
Determines if a bit is set or not.
Definition: utils.h:17
struct z80 * new_cpu(void)
Definition: z80.c:26
uint8_t * memory
Definition: memory.h:24
#define SET(val, bit)
Sets a bit.
Definition: utils.h:24