Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
cpu.h File Reference
#include "xemu/z80.h"
Include dependency graph for cpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CPU_Z80   0
 
#define CPU_Z80C   1
 
#define CPU_Z180   2
 
#define PORT_B6_READ_OTHERS   0xC0
 

Functions

void xep_rom_write_support (int towrite)
 
void set_ep_cpu (int type)
 
int ep_set_ram_config (const char *spec)
 
int ep_init_ram (void)
 
Uint8 read_cpu_byte (Uint16 addr)
 
Uint8 read_cpu_byte_by_segmap (Uint16 addr, Uint8 *segmap)
 
void write_cpu_byte_by_segmap (Uint16 addr, Uint8 *segmap, Uint8 data)
 
void z80_reset (void)
 
void ep_reset (void)
 

Variables

int CPU_CLOCK
 
Z80EX_CONTEXT z80ex
 
Uint8 memory [0x400000]
 
Uint8 ports[0x100] VARALIGN
 
const char * memory_segment_map [0x100]
 
int nmi_pending
 
char * mem_desc
 
const char ROM_SEGMENT []
 
const char XEPROM_SEGMENT []
 
const char RAM_SEGMENT []
 
const char VRAM_SEGMENT []
 
const char SRAM_SEGMENT []
 
const char UNUSED_SEGMENT []
 

Macro Definition Documentation

◆ CPU_Z180

#define CPU_Z180   2

Definition at line 26 of file cpu.h.

◆ CPU_Z80

#define CPU_Z80   0

Definition at line 24 of file cpu.h.

◆ CPU_Z80C

#define CPU_Z80C   1

Definition at line 25 of file cpu.h.

◆ PORT_B6_READ_OTHERS

#define PORT_B6_READ_OTHERS   0xC0

Definition at line 28 of file cpu.h.

Function Documentation

◆ ep_init_ram()

int ep_init_ram ( void  )

Definition at line 194 of file cpu.c.

Here is the call graph for this function:

◆ ep_reset()

void ep_reset ( void  )

Definition at line 621 of file cpu.c.

Here is the call graph for this function:

◆ ep_set_ram_config()

int ep_set_ram_config ( const char *  spec)

Definition at line 131 of file cpu.c.

Here is the call graph for this function:

◆ read_cpu_byte()

Uint8 read_cpu_byte ( Uint16  addr)

Definition at line 258 of file cpu.c.

◆ read_cpu_byte_by_segmap()

Uint8 read_cpu_byte_by_segmap ( Uint16  addr,
Uint8 segmap 
)

Definition at line 264 of file cpu.c.

◆ set_ep_cpu()

void set_ep_cpu ( int  type)

Definition at line 74 of file cpu.c.

◆ write_cpu_byte_by_segmap()

void write_cpu_byte_by_segmap ( Uint16  addr,
Uint8 segmap,
Uint8  data 
)

Definition at line 270 of file cpu.c.

◆ xep_rom_write_support()

void xep_rom_write_support ( int  towrite)

Definition at line 66 of file cpu.c.

Here is the caller graph for this function:

◆ z80_reset()

void z80_reset ( void  )

Definition at line 597 of file cpu.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CPU_CLOCK

int CPU_CLOCK

Definition at line 48 of file cpu.c.

◆ mem_desc

char* mem_desc

Definition at line 58 of file cpu.c.

◆ memory

Uint8 memory[0x400000]

Definition at line 43 of file commodore_65.c.

◆ memory_segment_map

const char* memory_segment_map[0x100]

Definition at line 49 of file cpu.h.

◆ nmi_pending

int nmi_pending

Definition at line 47 of file cpu.c.

◆ RAM_SEGMENT

const char RAM_SEGMENT[]

Definition at line 53 of file cpu.c.

◆ ROM_SEGMENT

const char ROM_SEGMENT[]

Definition at line 51 of file cpu.c.

◆ SRAM_SEGMENT

const char SRAM_SEGMENT[]

Definition at line 55 of file cpu.c.

◆ UNUSED_SEGMENT

const char UNUSED_SEGMENT[]

Definition at line 56 of file cpu.c.

◆ VARALIGN

Uint8 ports [0x100] VARALIGN

Definition at line 40 of file cpu.c.

◆ VRAM_SEGMENT

const char VRAM_SEGMENT[]

Definition at line 54 of file cpu.c.

◆ XEPROM_SEGMENT

const char XEPROM_SEGMENT[]

Definition at line 52 of file cpu.c.

◆ z80ex

Definition at line 37 of file primo.c.