PZ80emu  0.1
exchange.h
Go to the documentation of this file.
1 
6 #ifndef __PZ80EMU_EXCHANGE__
7 #define __PZ80EMU_EXCHANGE__
8 
9 #include <stdint.h>
10 
11 #include "z80.h"
12 
13 __BEGIN_DECLS
14 void _ex_reg16(word *, word *);
15 void _exx(struct z80 *);
16 void _ex_sp_reg16(word *, struct z80 *, uint8_t *);
17 __END_DECLS
18 
19 #endif
_ex_reg16
__BEGIN_DECLS void _ex_reg16(word *, word *)
Definition: exchange.c:13
z80::sp
word sp
Definition: z80.h:65
_exx
void _exx(struct z80 *)
Definition: exchange.c:27
memory
z80 memory class
Definition: memory.h:19
z80::_bc
word _bc
Definition: z80.h:62
_ex_sp_reg16
void _ex_sp_reg16(word *reg, struct z80 *cpu, uint8_t *memory)
Definition: exchange.c:41
_ex_sp_reg16
void _ex_sp_reg16(word *, struct z80 *, uint8_t *)
Definition: exchange.c:41
z80
Definition: z80.h:51
z80.h
z80 CPU data structure and functions
z80::bc
word bc
Definition: z80.h:55
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.
_ex_reg16
void _ex_reg16(word *reg1, word *reg2)
Definition: exchange.c:13
z80::_hl
word _hl
Definition: z80.h:64
word::W
uint16_t W
16-bit pair
Definition: z80.h:22
z80::de
word de
Definition: z80.h:56
word
type to deal with endianness and access of high/low bits
Definition: z80.h:21
_exx
void _exx(struct z80 *cpu)
Definition: exchange.c:27
z80::hl
word hl
Definition: z80.h:57
z80::_de
word _de
Definition: z80.h:63
exchange.h