PZ80emu  0.1
rotate.h
Go to the documentation of this file.
1 
6 #ifndef __PZ80EMU_ROTATE__
7 #define __PZ80EMU_ROTATE__
8 
9 #include <stdint.h>
10 
11 #include "z80.h"
12 
13 __BEGIN_DECLS
14 void _rlc(uint8_t, struct z80 *);
15 void _rrca(struct z80 *);
16 __END_DECLS
17 
18 #endif
z80::bus
struct bus * bus
Definition: z80.h:66
CARRY
#define CARRY
bit position of CARRY flag
Definition: z80.h:72
run
int run(struct z80 *cpu, uint8_t *memory, long runcycles, bool s_flag)
Definition: z80.c:66
memory
z80 memory class
Definition: memory.h:19
_rrca
void _rrca(struct z80 *cpu)
register A 8-bit right rotate with carry
Definition: rotate.c:31
rotate.h
memory_new
struct memory * memory_new(void)
Definition: memory.c:85
z80
Definition: z80.h:51
utils.h
Utility macros.
z80.h
z80 CPU data structure and functions
display_mem
void display_mem(uint8_t *memory)
display the current memory contents to STDOUT
Definition: display.c:144
_rlc
void _rlc(uint8_t n, struct z80 *cpu)
8-bit rotation to the left
Definition: rotate.c:16
word::l
uint8_t l
low order byte
Definition: z80.h:31
word::h
uint8_t h
high order byte
Definition: z80.h:32
word::B
struct word::@0 B
Combination of High and Low bytes in correct order for endianness.
_rrca
void _rrca(struct z80 *)
register A 8-bit right rotate with carry
Definition: rotate.c:31
memory::memory_free
void(* memory_free)(void *self)
Definition: memory.h:21
RESET
#define RESET(val, bit)
Resets a bit.
Definition: utils.h:31
z80::af
word af
Definition: z80.h:54
display.h
display_registers
void display_registers(struct z80 *cpu)
display the current register state to STDOUT
Definition: display.c:177
_rlc
__BEGIN_DECLS void _rlc(uint8_t, struct z80 *)
8-bit rotation to the left
Definition: rotate.c:16
memory::memory_load
long(* memory_load)(void *self, const char *filename)
Definition: memory.h:27
IS_SET
#define IS_SET(val, bit)
Determines if a bit is set or not.
Definition: utils.h:17
new_cpu
struct z80 * new_cpu(void)
Definition: z80.c:26
memory::memory
uint8_t * memory
Definition: memory.h:24
memory.h
Memory setup functions.
SET
#define SET(val, bit)
Sets a bit.
Definition: utils.h:24