Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
primoemu.c File Reference
#include "xep128.h"
#include "primoemu.h"
#include "xemu/z80.h"
#include "cpu.h"
#include "dave.h"
#include "nick.h"
#include "zxemu.h"
#include "main.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 105 of file primoemu.c.

◆ LD1HI_PV0

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

Definition at line 147 of file primoemu.c.

◆ LD1HI_PV1

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

Definition at line 146 of file primoemu.c.

◆ MEMORY_BACKUP_SIZE

#define MEMORY_BACKUP_SIZE   (0xC000 + sizeof primo_lpt)

Definition at line 186 of file primoemu.c.

◆ PRIMOEMU_HOTKEY_RESET

#define PRIMOEMU_HOTKEY_RESET   0x47

Definition at line 108 of file primoemu.c.

Function Documentation

◆ primo_emulator_execute()

void primo_emulator_execute ( void  )

Definition at line 212 of file primoemu.c.

◆ primo_emulator_exit()

void primo_emulator_exit ( void  )

Definition at line 193 of file primoemu.c.

◆ primo_read_io()

Uint8 primo_read_io ( Uint8  port)

Definition at line 138 of file primoemu.c.

◆ primo_search_rom()

int primo_search_rom ( void  )

Definition at line 159 of file primoemu.c.

◆ primo_switch()

void primo_switch ( Uint8  data)

Definition at line 111 of file primoemu.c.

Here is the call graph for this function:

◆ primo_write_io()

void primo_write_io ( Uint8  port,
Uint8  data 
)

Definition at line 150 of file primoemu.c.

Variable Documentation

◆ primo_key_trans

const Uint8 primo_key_trans[]

Definition at line 37 of file primoemu.c.

◆ primo_nmi_enabled

int primo_nmi_enabled = 0

Definition at line 32 of file primoemu.c.

◆ primo_on

int primo_on = 0

Definition at line 31 of file primoemu.c.

◆ primo_rom_seg

int primo_rom_seg = -1

Definition at line 33 of file primoemu.c.