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

Go to the source code of this file.

Functions

__BEGIN_DECLS void _ex_reg16 (word *, word *)
 
void _exx (struct z80 *)
 
void _ex_sp_reg16 (word *, struct z80 *, uint8_t *)
 

Detailed Description

Author
Peter H. Ezetta

Function Documentation

◆ _ex_reg16()

__BEGIN_DECLS 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: