PZ80emu  0.1
io.h
Go to the documentation of this file.
1 
6 #ifndef __PZ80EMU_IO__
7 #define __PZ80EMU_IO__
8 
9 #include <stdint.h>
10 
11 #include "z80.h"
12 
13 __BEGIN_DECLS
14 void _out_mem_reg8(uint8_t, struct z80 *, uint8_t *);
15 void _out_c_reg8(uint8_t, struct z80 *, uint8_t *);
16 void _in_reg8_mem(uint8_t *, struct z80 *, uint8_t *);
17 __END_DECLS
18 
19 #endif
z80::bus
struct bus * bus
Definition: z80.h:66
memory
z80 memory class
Definition: memory.h:19
z80::pc
word pc
Definition: z80.h:53
z80
Definition: z80.h:51
_in_reg8_mem
void _in_reg8_mem(uint8_t *, struct z80 *, uint8_t *)
reads value of data bus into an 8-bit register
Definition: io.c:43
z80.h
z80 CPU data structure and functions
z80::bc
word bc
Definition: z80.h:55
_in_reg8_mem
void _in_reg8_mem(uint8_t *reg, struct z80 *cpu, uint8_t *memory)
reads value of data bus into an 8-bit register
Definition: io.c:43
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.
_out_mem_reg8
void _out_mem_reg8(uint8_t reg, struct z80 *cpu, uint8_t *memory)
places the contents of an 8-bit register on the databus
Definition: io.c:15
bus::data
uint8_t data
Definition: bus.h:19
_out_mem_reg8
__BEGIN_DECLS void _out_mem_reg8(uint8_t, struct z80 *, uint8_t *)
places the contents of an 8-bit register on the databus
Definition: io.c:15
z80::af
word af
Definition: z80.h:54
bus::address
uint16_t address
Definition: bus.h:20
io.h
word::W
uint16_t W
16-bit pair
Definition: z80.h:22
word
type to deal with endianness and access of high/low bits
Definition: z80.h:21