Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
emu_rom_interface.c File Reference
#include "xep128.h"
#include "emu_rom_interface.h"
#include "xemu/../rom/ep128/xep_rom_syms.h"
#include "xemu/z80.h"
#include "cpu.h"
#include "roms.h"
#include "emu_monitor.h"
#include "configuration.h"
#include "fileio.h"
#include "main.h"
#include <unistd.h>
#include <time.h>
Include dependency graph for emu_rom_interface.c:

Go to the source code of this file.

Macros

#define XEPSYM_ADDR(sym)   (xep_rom_addr + (sym) - 0xC000)
 
#define XEPSYM_P(sym)   (memory + XEPSYM_ADDR(sym))
 
#define COBUF   ((char*)XEPSYM_P(xepsym_cobuf))
 
#define SET_XEPSYM_BYTE(sym, value)   *XEPSYM_P(sym) = (value)
 
#define SET_XEPSYM_WORD(sym, value)
 
#define BIN2BCD(bin)   ((((bin) / 10) << 4) | ((bin) % 10))
 
#define EXOS_ADDR(n)   (0x3FC000 | ((n) & 0x3FFF))
 
#define EXOS_BYTE(n)   memory[EXOS_ADDR(n)]
 
#define EXOS_GET_WORD(n)   (EXOS_BYTE(n) | (EXOS_BYTE((n) + 1) << 8))
 

Functions

void exos_get_status_line (char *buffer)
 
void xep_set_error (const char *msg)
 
void xep_set_time_consts (char *descbuffer)
 
void xep_set_default_device_name (const char *name)
 
void xep_rom_trap (Uint16 pc, Uint8 opcode)
 

Variables

Uint8 exos_version = 0
 
Uint8 exos_info [8]
 

Macro Definition Documentation

◆ BIN2BCD

#define BIN2BCD (   bin)    ((((bin) / 10) << 4) | ((bin) % 10))

Definition at line 42 of file emu_rom_interface.c.

◆ COBUF

#define COBUF   ((char*)XEPSYM_P(xepsym_cobuf))

Definition at line 36 of file emu_rom_interface.c.

◆ EXOS_ADDR

#define EXOS_ADDR (   n)    (0x3FC000 | ((n) & 0x3FFF))

Definition at line 48 of file emu_rom_interface.c.

◆ EXOS_BYTE

#define EXOS_BYTE (   n)    memory[EXOS_ADDR(n)]

Definition at line 49 of file emu_rom_interface.c.

◆ EXOS_GET_WORD

#define EXOS_GET_WORD (   n)    (EXOS_BYTE(n) | (EXOS_BYTE((n) + 1) << 8))

Definition at line 50 of file emu_rom_interface.c.

◆ SET_XEPSYM_BYTE

#define SET_XEPSYM_BYTE (   sym,
  value 
)    *XEPSYM_P(sym) = (value)

Definition at line 37 of file emu_rom_interface.c.

◆ SET_XEPSYM_WORD

#define SET_XEPSYM_WORD (   sym,
  value 
)
Value:
do { \
SET_XEPSYM_BYTE(sym, (value) & 0xFF); \
SET_XEPSYM_BYTE((sym) + 1, (value) >> 8); \
} while(0)

Definition at line 38 of file emu_rom_interface.c.

◆ XEPSYM_ADDR

#define XEPSYM_ADDR (   sym)    (xep_rom_addr + (sym) - 0xC000)

Definition at line 34 of file emu_rom_interface.c.

◆ XEPSYM_P

#define XEPSYM_P (   sym)    (memory + XEPSYM_ADDR(sym))

Definition at line 35 of file emu_rom_interface.c.

Function Documentation

◆ exos_get_status_line()

void exos_get_status_line ( char *  buffer)

Definition at line 54 of file emu_rom_interface.c.

◆ xep_rom_trap()

void xep_rom_trap ( Uint16  pc,
Uint8  opcode 
)

Definition at line 195 of file emu_rom_interface.c.

Here is the call graph for this function:

◆ xep_set_default_device_name()

void xep_set_default_device_name ( const char *  name)

Definition at line 95 of file emu_rom_interface.c.

◆ xep_set_error()

void xep_set_error ( const char *  msg)

Definition at line 64 of file emu_rom_interface.c.

◆ xep_set_time_consts()

void xep_set_time_consts ( char *  descbuffer)

Definition at line 75 of file emu_rom_interface.c.

Variable Documentation

◆ exos_info

Uint8 exos_info[8]

Definition at line 46 of file emu_rom_interface.c.

◆ exos_version

Uint8 exos_version = 0

Definition at line 45 of file emu_rom_interface.c.

value
int value
Definition: dma65.c:90