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

Functions

void _ex_reg16 (word *reg1, word *reg2)
 
void _exx (struct z80 *cpu)
 
void _ex_sp_reg16 (word *reg, struct z80 *cpu, uint8_t *memory)
 

Function Documentation

◆ _ex_reg16()

void _ex_reg16 ( word reg1,
word reg2 
)

exchange two 16-bit registers

Parameters
reg1first register
reg2second register

◆ _ex_sp_reg16()

void _ex_sp_reg16 ( word reg,
struct z80 cpu,
uint8_t *  memory 
)

exchange contents of a register pair with memory pointed to by SP

Parameters
regregister to operate on
cpuz80 cpu object
memorypointer to allocated memory

◆ _exx()

void _exx ( struct z80 cpu)

exchange bc, de, and hl register pairs with their alternates

Parameters
cpuz80 cpu objects
Here is the call graph for this function: