Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
primoemu.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_hid.h"
#include "enterprise128.h"
#include "primoemu.h"
#include "xemu/z80.h"
#include "cpu.h"
#include "dave.h"
#include "nick.h"
#include "zxemu.h"
Include dependency graph for primoemu.c:

Go to the source code of this file.

Macros

#define EP_KBDM_SCAN(sc, resval)   ((kbd_matrix[(sc) >> 4] & (1 << ((sc) & 15))) ? 0 : (resval))
 
#define PRIMOEMU_HOTKEY_RESET   0x47
 
#define LD1HI_PV1   (((PRIMO_VID_SEG << 6) + 0x28) & 0xFF)
 
#define LD1HI_PV0   (((PRIMO_VID_SEG << 6) + 0x08) & 0xFF)
 
#define MEMORY_BACKUP_SIZE   (0xC000 + sizeof primo_lpt)
 

Functions

void primo_switch (Uint8 data)
 
Uint8 primo_read_io (Uint8 port)
 
void primo_write_io (Uint8 port, Uint8 data)
 
int primo_search_rom (void)
 
void primo_emulator_exit (void)
 
void primo_emulator_execute (void)
 

Variables

int primo_on = 0
 
int primo_nmi_enabled = 0
 
int primo_rom_seg = -1
 
const Uint8 primo_key_trans []
 

Macro Definition Documentation

◆ EP_KBDM_SCAN

#define EP_KBDM_SCAN (   sc,
  resval 
)    ((kbd_matrix[(sc) >> 4] & (1 << ((sc) & 15))) ? 0 : (resval))

Definition at line 104 of file primoemu.c.

◆ LD1HI_PV0

#define LD1HI_PV0   (((PRIMO_VID_SEG << 6) + 0x08) & 0xFF)

Definition at line 146 of file primoemu.c.

◆ LD1HI_PV1

#define LD1HI_PV1   (((PRIMO_VID_SEG << 6) + 0x28) & 0xFF)

Definition at line 145 of file primoemu.c.

◆ MEMORY_BACKUP_SIZE

#define MEMORY_BACKUP_SIZE   (0xC000 + sizeof primo_lpt)

Definition at line 185 of file primoemu.c.

◆ PRIMOEMU_HOTKEY_RESET

#define PRIMOEMU_HOTKEY_RESET   0x47

Definition at line 107 of file primoemu.c.

Function Documentation

◆ primo_emulator_execute()

void primo_emulator_execute ( void  )

Definition at line 211 of file primoemu.c.

◆ primo_emulator_exit()

void primo_emulator_exit ( void  )

Definition at line 192 of file primoemu.c.

Here is the caller graph for this function:

◆ primo_read_io()

Uint8 primo_read_io ( Uint8  port)

Definition at line 137 of file primoemu.c.

Here is the caller graph for this function:

◆ primo_search_rom()

int primo_search_rom ( void  )

Definition at line 158 of file primoemu.c.

◆ primo_switch()

void primo_switch ( Uint8  data)

Definition at line 110 of file primoemu.c.

Here is the caller graph for this function:

◆ primo_write_io()

void primo_write_io ( Uint8  port,
Uint8  data 
)

Definition at line 149 of file primoemu.c.

Here is the caller graph for this function:

Variable Documentation

◆ primo_key_trans

const Uint8 primo_key_trans[]

Definition at line 36 of file primoemu.c.

◆ primo_nmi_enabled

int primo_nmi_enabled = 0

Definition at line 31 of file primoemu.c.

◆ primo_on

int primo_on = 0

Definition at line 30 of file primoemu.c.

◆ primo_rom_seg

int primo_rom_seg = -1

Definition at line 32 of file primoemu.c.