PZ80emu  0.1
Functions
add.h File Reference
#include <stdint.h>
#include "z80.h"
Include dependency graph for add.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__BEGIN_DECLS void _inc8 (uint8_t *, struct z80 *)
 increments an 8 bit register More...
 
void _add_reg16_reg16 (word *, word *, struct z80 *)
 adds two 16-bit registers together, storing the values in reg1 More...
 
void _add_a_mem (struct z80 *, uint8_t *)
 adds the contents of a user supplied register to A More...
 
void _add_a_reg8 (struct z80 *, uint8_t *)
 adds the contents of a user supplied register to A More...
 
void _adc_a_reg8 (struct z80 *, uint8_t *)
 adds the contents of a user supplied register and the carry flag to A More...
 
void _adc_a_mem (struct z80 *, uint8_t *)
 adds contents of A to the contents of a memory address with carry More...
 

Function Documentation

◆ _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
cpuz80 cpu object
memorymemory 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
cpuz80 cpu object
regregister 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
cpuz80 cpu object
memorypointer to system memory
Here is the call graph for this function:

◆ _add_a_reg8()

void _add_a_reg8 ( struct z80 cpu,
uint8_t *  reg 
)

adds the contents of a user supplied register to A

Parameters
cpuz80 cpu object
regregister to add to A
Here is the call graph for this function:

◆ _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
reg1the first register for the add operation
reg2the second register for the add operation
cpuz80 cpu object

◆ _inc8()

__BEGIN_DECLS void _inc8 ( uint8_t *  n,
struct z80 cpu 
)

increments an 8 bit register

Parameters
npointer to register to increment
cpuz80 cpu object
Here is the call graph for this function: