PZ80emu  0.1
Functions
io.c File Reference
#include "io.h"
#include "z80.h"
Include dependency graph for io.c:

Functions

void _out_mem_reg8 (uint8_t reg, struct z80 *cpu, uint8_t *memory)
 places the contents of an 8-bit register on the databus More...
 
void _out_c_reg8 (uint8_t reg, struct z80 *cpu, uint8_t *memory)
 
void _in_reg8_mem (uint8_t *reg, struct z80 *cpu, uint8_t *memory)
 reads value of data bus into an 8-bit register More...
 

Function Documentation

◆ _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

Parameters
regregister to store input value to
cpuz80 CPU object
memorypointer to allocated memory

◆ _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

Parameters
regregister to output
cpuz80 CPU object
memorypointer to allocated memory