PZ80emu  0.1
bcd.h
Go to the documentation of this file.
1 
6 #ifndef __PZ80EMU_BCD__
7 #define __PZ80EMU_BCD__
8 
9 #include "z80.h"
10 
11 __BEGIN_DECLS
12 void _daa(struct z80 *);
13 __END_DECLS
14 
15 #endif
CARRY
#define CARRY
bit position of CARRY flag
Definition: z80.h:72
_daa
__BEGIN_DECLS void _daa(struct z80 *)
Definition: bcd.c:15
_daa
void _daa(struct z80 *cpu)
Definition: bcd.c:15
z80
Definition: z80.h:51
utils.h
Utility macros.
HALF_CARRY
#define HALF_CARRY
bit position of HALF CARRY flag
Definition: z80.h:76
z80.h
z80 CPU data structure and functions
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.
bcd.h
RESET
#define RESET(val, bit)
Resets a bit.
Definition: utils.h:31
z80::af
word af
Definition: z80.h:54
SUBTRACT
#define SUBTRACT
bit position of SUBTRACT flag
Definition: z80.h:73
IS_SET
#define IS_SET(val, bit)
Determines if a bit is set or not.
Definition: utils.h:17
SET
#define SET(val, bit)
Sets a bit.
Definition: utils.h:24