Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
cpu.c File Reference
#include "xep128.h"
#include "cpu.h"
#include "apu.h"
#include "z180.h"
#include "dave.h"
#include "nick.h"
#include "rtc.h"
#include "printer.h"
#include "zxemu.h"
#include "primoemu.h"
#include "epnet.h"
#include "roms.h"
#include "input.h"
#include "emu_rom_interface.h"
#include "sdext.h"
#include "exdos_wd.h"
#include <time.h>
Include dependency graph for cpu.c:

Go to the source code of this file.

Macros

#define nick_clock_align()
 

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)
 
Z80EX_BYTE z80ex_mread_cb (Z80EX_WORD addr, int m1_state)
 
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 z80ex_mwrite_cb (Z80EX_WORD addr, Z80EX_BYTE value)
 
Z80EX_BYTE z80ex_pread_cb (Z80EX_WORD port16)
 
void z80ex_pwrite_cb (Z80EX_WORD port16, Z80EX_BYTE value)
 
Z80EX_BYTE z80ex_intread_cb (void)
 
void z80ex_reti_cb (void)
 
int z80ex_ed_cb (Z80EX_BYTE opcode)
 
void z80_reset (void)
 
void ep_reset (void)
 

Variables

Z80EX_CONTEXT z80ex VARALIGN
 
const char * memory_segment_map [0x100]
 
int nmi_pending = 0
 
int CPU_CLOCK = DEFAULT_CPU_CLOCK
 
const char ROM_SEGMENT [] = "ROM"
 
const char XEPROM_SEGMENT [] = "XEPROM"
 
const char RAM_SEGMENT [] = "RAM"
 
const char VRAM_SEGMENT [] = "VRAM"
 
const char SRAM_SEGMENT [] = "SRAM"
 
const char UNUSED_SEGMENT [] = "unused"
 
char * mem_desc = NULL
 

Macro Definition Documentation

◆ nick_clock_align

#define nick_clock_align ( )

Definition at line 60 of file cpu.c.

Function Documentation

◆ ep_init_ram()

int ep_init_ram ( void  )

Definition at line 185 of file cpu.c.

Here is the call graph for this function:

◆ ep_reset()

void ep_reset ( void  )

Definition at line 613 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 129 of file cpu.c.

Here is the call graph for this function:

◆ read_cpu_byte()

Uint8 read_cpu_byte ( Uint16  addr)

Definition at line 250 of file cpu.c.

◆ read_cpu_byte_by_segmap()

Uint8 read_cpu_byte_by_segmap ( Uint16  addr,
Uint8 segmap 
)

Definition at line 256 of file cpu.c.

◆ set_ep_cpu()

void set_ep_cpu ( int  type)

Definition at line 72 of file cpu.c.

◆ write_cpu_byte_by_segmap()

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

Definition at line 262 of file cpu.c.

◆ xep_rom_write_support()

void xep_rom_write_support ( int  towrite)

Definition at line 64 of file cpu.c.

◆ z80_reset()

void z80_reset ( void  )

Definition at line 589 of file cpu.c.

Here is the call graph for this function:

◆ z80ex_ed_cb()

int z80ex_ed_cb ( Z80EX_BYTE  opcode)

Definition at line 578 of file cpu.c.

Here is the call graph for this function:

◆ z80ex_intread_cb()

Z80EX_BYTE z80ex_intread_cb ( void  )

Definition at line 569 of file cpu.c.

◆ z80ex_mread_cb()

Z80EX_BYTE z80ex_mread_cb ( Z80EX_WORD  addr,
int  m1_state 
)

Definition at line 232 of file cpu.c.

◆ z80ex_mwrite_cb()

void z80ex_mwrite_cb ( Z80EX_WORD  addr,
Z80EX_BYTE  value 
)

Definition at line 270 of file cpu.c.

Here is the call graph for this function:

◆ z80ex_pread_cb()

Z80EX_BYTE z80ex_pread_cb ( Z80EX_WORD  port16)

Definition at line 294 of file cpu.c.

Here is the call graph for this function:

◆ z80ex_pwrite_cb()

void z80ex_pwrite_cb ( Z80EX_WORD  port16,
Z80EX_BYTE  value 
)

Definition at line 388 of file cpu.c.

Here is the call graph for this function:

◆ z80ex_reti_cb()

void z80ex_reti_cb ( void  )

Definition at line 574 of file cpu.c.

Variable Documentation

◆ CPU_CLOCK

int CPU_CLOCK = DEFAULT_CPU_CLOCK

Definition at line 46 of file cpu.c.

◆ mem_desc

char* mem_desc = NULL

Definition at line 56 of file cpu.c.

◆ memory_segment_map

const char* memory_segment_map[0x100]

Definition at line 42 of file cpu.c.

◆ nmi_pending

int nmi_pending = 0

Definition at line 45 of file cpu.c.

◆ RAM_SEGMENT

const char RAM_SEGMENT[] = "RAM"

Definition at line 51 of file cpu.c.

◆ ROM_SEGMENT

const char ROM_SEGMENT[] = "ROM"

Definition at line 49 of file cpu.c.

◆ SRAM_SEGMENT

const char SRAM_SEGMENT[] = "SRAM"

Definition at line 53 of file cpu.c.

◆ UNUSED_SEGMENT

const char UNUSED_SEGMENT[] = "unused"

Definition at line 54 of file cpu.c.

◆ VARALIGN

Uint8 is_ram_seg [0x100] VARALIGN

Definition at line 38 of file cpu.c.

◆ VRAM_SEGMENT

const char VRAM_SEGMENT[] = "VRAM"

Definition at line 52 of file cpu.c.

◆ XEPROM_SEGMENT

const char XEPROM_SEGMENT[] = "XEPROM"

Definition at line 50 of file cpu.c.