Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Typedefs | Functions | Variables
tvc.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_files.h"
#include "xemu/emutools_hid.h"
#include "xemu/emutools_config.h"
#include "xemu/z80.h"
#include "tvc.h"
#include "sdext.h"
Include dependency graph for tvc.c:

Go to the source code of this file.

Macros

#define CLOCKS_PER_FRAME   (CPU_CLOCK / 50)
 
#define VIRTUAL_SHIFT_POS   0x63
 

Typedefs

typedef void(* memcbwr_type) (int, Uint8)
 
typedef Uint8(* memcbrd_type) (int)
 

Functions

Z80EX_BYTE z80ex_mread_cb (Z80EX_WORD addr, int m1_state)
 
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)
 
void clear_emu_events (void)
 
int emu_callback_key (int pos, SDL_Scancode key, int pressed, int handled)
 
int main (int argc, char **argv)
 

Variables

const struct KeyMappingDefault tvc_key_map []
 
Z80EX_CONTEXT z80ex
 
const Uint8 crtc_write_masks [18]
 

Macro Definition Documentation

◆ CLOCKS_PER_FRAME

#define CLOCKS_PER_FRAME   (CPU_CLOCK / 50)

Definition at line 32 of file tvc.c.

◆ VIRTUAL_SHIFT_POS

#define VIRTUAL_SHIFT_POS   0x63

Definition at line 33 of file tvc.c.

Typedef Documentation

◆ memcbrd_type

typedef Uint8(* memcbrd_type) (int)

Definition at line 48 of file tvc.c.

◆ memcbwr_type

typedef void(* memcbwr_type) (int, Uint8)

Definition at line 47 of file tvc.c.

Function Documentation

◆ clear_emu_events()

void clear_emu_events ( void  )

Definition at line 260 of file tvc.c.

Here is the call graph for this function:

◆ emu_callback_key()

int emu_callback_key ( int  pos,
SDL_Scancode  key,
int  pressed,
int  handled 
)

Definition at line 333 of file tvc.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 425 of file tvc.c.

Here is the call graph for this function:

◆ z80ex_intread_cb()

Z80EX_BYTE z80ex_intread_cb ( void  )

Definition at line 249 of file tvc.c.

◆ z80ex_mread_cb()

Z80EX_BYTE z80ex_mread_cb ( Z80EX_WORD  addr,
int  m1_state 
)

Definition at line 145 of file tvc.c.

◆ z80ex_mwrite_cb()

void z80ex_mwrite_cb ( Z80EX_WORD  addr,
Z80EX_BYTE  value 
)

Definition at line 152 of file tvc.c.

◆ z80ex_pread_cb()

Z80EX_BYTE z80ex_pread_cb ( Z80EX_WORD  port16)

Definition at line 159 of file tvc.c.

◆ z80ex_pwrite_cb()

void z80ex_pwrite_cb ( Z80EX_WORD  port16,
Z80EX_BYTE  value 
)

Definition at line 179 of file tvc.c.

◆ z80ex_reti_cb()

void z80ex_reti_cb ( void  )

Definition at line 255 of file tvc.c.

Variable Documentation

◆ crtc_write_masks

const Uint8 crtc_write_masks[18]
Initial value:
= {
0xFF , 0xFF , 0xFF , 0xFF , 0x7F , 0x1F ,
0x7F , 0x7F , 0xFF , 0x1F , 0x7F , 0x1F ,
0x3F , 0xFF , 0x3F , 0xFF , 0xFF , 0xFF
}

Definition at line 60 of file tvc.c.

◆ ext_rom

Uint8 ext_rom[0x04000]

Definition at line 56 of file tvc.c.

◆ fullscreen_requested

int fullscreen_requested

Definition at line 85 of file tvc.c.

◆ rd_selector

memcbrd_type rd_selector[4]

Definition at line 51 of file tvc.c.

◆ registers

Uint8 registers[18]

Definition at line 67 of file tvc.c.

◆ regsel

int regsel

Definition at line 68 of file tvc.c.

◆ sdext

int sdext

Definition at line 82 of file tvc.c.

◆ sdimg

char* sdimg

Definition at line 83 of file tvc.c.

◆ sdlrenderquality

int sdlrenderquality

Definition at line 85 of file tvc.c.

◆ sdrom

char* sdrom

Definition at line 84 of file tvc.c.

◆ sys_rom

Uint8 sys_rom[0x04000]

Definition at line 55 of file tvc.c.

◆ syscon

int syscon

Definition at line 85 of file tvc.c.

◆ tvc_key_map

const struct KeyMappingDefault tvc_key_map[]

Definition at line 26 of file tvc_keymatrix.c.

◆ user_ram

Uint8 user_ram[0x10000]

Definition at line 53 of file tvc.c.

◆ video_ram

Uint8 video_ram[0x10000]

Definition at line 54 of file tvc.c.

◆ vmem

Uint8* vmem

Definition at line 52 of file tvc.c.

◆ wr_selector

memcbwr_type wr_selector[4]

Definition at line 50 of file tvc.c.

◆ z80ex

Definition at line 38 of file tvc.c.