Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Functions | Variables
hardware.c File Reference
#include "xemu/emutools.h"
#include "hardware.h"
#include "bios.h"
#include "bdos.h"
#include "console.h"
#include <string.h>
Include dependency graph for hardware.c:

Go to the source code of this file.

Functions

Z80EX_BYTE z80ex_mread_cb (Z80EX_WORD addr, int m1_state)
 
void z80ex_mwrite_cb (Z80EX_WORD addr, Z80EX_BYTE value)
 
void emu_mem_write (int addr, int data)
 
int emu_mem_read (int addr)
 
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 z80_custom_disasm (int addr, char *buf, int buf_size)
 

Variables

Z80EX_CONTEXT z80ex
 
Uint8 memory [0x10000]
 
Uint8 modded [0x10000]
 
int emu_cost_cycles = 0
 
int emu_cost_usecs = 0
 
int stop_emulation = 0
 
int cpu_cycles = 0
 
int cpu_cycles_per_frame
 
int cpu_mhz
 
int trace
 

Function Documentation

◆ emu_mem_read()

int emu_mem_read ( int  addr)

Definition at line 65 of file hardware.c.

◆ emu_mem_write()

void emu_mem_write ( int  addr,
int  data 
)

Definition at line 55 of file hardware.c.

◆ z80_custom_disasm()

int z80_custom_disasm ( int  addr,
char *  buf,
int  buf_size 
)

Definition at line 118 of file hardware.c.

Here is the call graph for this function:

◆ z80ex_intread_cb()

Z80EX_BYTE z80ex_intread_cb ( void  )

Definition at line 103 of file hardware.c.

◆ z80ex_mread_cb()

Z80EX_BYTE z80ex_mread_cb ( Z80EX_WORD  addr,
int  m1_state 
)

Definition at line 39 of file hardware.c.

◆ z80ex_mwrite_cb()

void z80ex_mwrite_cb ( Z80EX_WORD  addr,
Z80EX_BYTE  value 
)

Definition at line 44 of file hardware.c.

◆ z80ex_pread_cb()

Z80EX_BYTE z80ex_pread_cb ( Z80EX_WORD  port16)

Definition at line 74 of file hardware.c.

◆ z80ex_pwrite_cb()

void z80ex_pwrite_cb ( Z80EX_WORD  port16,
Z80EX_BYTE  value 
)

Definition at line 79 of file hardware.c.

Here is the call graph for this function:

◆ z80ex_reti_cb()

void z80ex_reti_cb ( void  )

Definition at line 108 of file hardware.c.

Variable Documentation

◆ cpu_cycles

int cpu_cycles = 0

Definition at line 33 of file hardware.c.

◆ cpu_cycles_per_frame

int cpu_cycles_per_frame

Definition at line 34 of file hardware.c.

◆ cpu_mhz

int cpu_mhz

Definition at line 35 of file hardware.c.

◆ emu_cost_cycles

int emu_cost_cycles = 0

Definition at line 30 of file hardware.c.

◆ emu_cost_usecs

int emu_cost_usecs = 0

Definition at line 30 of file hardware.c.

◆ memory

Uint8 memory[0x10000]

Definition at line 28 of file hardware.c.

◆ modded

Uint8 modded[0x10000]

Definition at line 29 of file hardware.c.

◆ stop_emulation

int stop_emulation = 0

Definition at line 31 of file hardware.c.

◆ trace

int trace

Definition at line 36 of file hardware.c.

◆ z80ex

Definition at line 27 of file hardware.c.