#include <stdint.h>
#include "z80.h"
Go to the source code of this file.
◆ _adc_a_mem()
void _adc_a_mem |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory |
|
) |
| |
adds contents of A to the contents of a memory address with carry
- Parameters
-
cpu | z80 cpu object |
memory | memory location to add to A |
◆ _adc_a_reg8()
void _adc_a_reg8 |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
reg |
|
) |
| |
adds the contents of a user supplied register and the carry flag to A
- Parameters
-
cpu | z80 cpu object |
reg | register to add to A |
◆ _add_a_mem()
void _add_a_mem |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
memory |
|
) |
| |
adds the contents of a user supplied register to A
- Parameters
-
cpu | z80 cpu object |
memory | pointer to system memory |
◆ _add_a_reg8()
void _add_a_reg8 |
( |
struct z80 * |
cpu, |
|
|
uint8_t * |
reg |
|
) |
| |
adds the contents of a user supplied register to A
- Parameters
-
cpu | z80 cpu object |
reg | register to add to A |
◆ _add_reg16_reg16()
void _add_reg16_reg16 |
( |
word * |
reg1, |
|
|
word * |
reg2, |
|
|
struct z80 * |
cpu |
|
) |
| |
adds two 16-bit registers together, storing the values in reg1
- Parameters
-
reg1 | the first register for the add operation |
reg2 | the second register for the add operation |
cpu | z80 cpu object |
◆ _inc8()
__BEGIN_DECLS void _inc8 |
( |
uint8_t * |
n, |
|
|
struct z80 * |
cpu |
|
) |
| |
increments an 8 bit register
- Parameters
-
n | pointer to register to increment |
cpu | z80 cpu object |