Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
commodore_lcd.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_files.h"
#include "xemu/emutools_hid.h"
#include "xemu/emutools_config.h"
#include "xemu/emutools_gui.h"
#include "xemu/cpu65.h"
#include "xemu/via65c22.h"
#include "commodore_lcd.h"
#include <time.h>
Include dependency graph for commodore_lcd.c:

Go to the source code of this file.

Macros

#define VIRTUAL_SHIFT_POS   0x82
 
#define GET_MEMORY(phys_addr)   memory[phys_addr]
 
#define BG   lcd_palette[0]
 
#define FG   lcd_palette[1]
 

Functions

int cpu65_trap_callback (const Uint8 opcode)
 
void clear_emu_events (void)
 
Uint8 cpu65_read_callback (Uint16 addr)
 
void cpu65_write_callback (Uint16 addr, Uint8 data)
 
void cpu65_write_rmw_callback (Uint16 addr, Uint8 old_data, Uint8 new_data)
 
int emu_callback_key (int pos, SDL_Scancode key, int pressed, int handled)
 
int main (int argc, char **argv)
 

Variables

const unsigned char roms []
 

Macro Definition Documentation

◆ BG

#define BG   lcd_palette[0]

Definition at line 293 of file commodore_lcd.c.

◆ FG

#define FG   lcd_palette[1]

Definition at line 294 of file commodore_lcd.c.

◆ GET_MEMORY

#define GET_MEMORY (   phys_addr)    memory[phys_addr]

Definition at line 175 of file commodore_lcd.c.

◆ VIRTUAL_SHIFT_POS

#define VIRTUAL_SHIFT_POS   0x82

Definition at line 84 of file commodore_lcd.c.

Function Documentation

◆ clear_emu_events()

void clear_emu_events ( void  )

Definition at line 169 of file commodore_lcd.c.

Here is the call graph for this function:

◆ cpu65_read_callback()

Uint8 cpu65_read_callback ( Uint16  addr)

Definition at line 178 of file commodore_lcd.c.

◆ cpu65_trap_callback()

int cpu65_trap_callback ( const Uint8  opcode)

Definition at line 163 of file commodore_lcd.c.

◆ cpu65_write_callback()

void cpu65_write_callback ( Uint16  addr,
Uint8  data 
)

Definition at line 188 of file commodore_lcd.c.

Here is the caller graph for this function:

◆ cpu65_write_rmw_callback()

void cpu65_write_rmw_callback ( Uint16  addr,
Uint8  old_data,
Uint8  new_data 
)

Definition at line 226 of file commodore_lcd.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 368 of file commodore_lcd.c.

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 652 of file commodore_lcd.c.

Here is the call graph for this function:

Variable Documentation

◆ clock_mhz

int clock_mhz

Definition at line 640 of file commodore_lcd.c.

◆ data

Uint8 data[65536]

Definition at line 74 of file commodore_lcd.c.

◆ fullscreen_requested

int fullscreen_requested

Definition at line 636 of file commodore_lcd.c.

◆ gui_selection

char* gui_selection

Definition at line 647 of file commodore_lcd.c.

◆ keep_ram

int keep_ram

Definition at line 636 of file commodore_lcd.c.

◆ phase

int phase

Definition at line 73 of file commodore_lcd.c.

◆ prg_inject_fn

char* prg_inject_fn

Definition at line 646 of file commodore_lcd.c.

◆ ram_size_kbytes

int ram_size_kbytes

Definition at line 639 of file commodore_lcd.c.

◆ rom102_fn

char* rom102_fn

Definition at line 641 of file commodore_lcd.c.

◆ rom103_fn

char* rom103_fn

Definition at line 642 of file commodore_lcd.c.

◆ rom104_fn

char* rom104_fn

Definition at line 643 of file commodore_lcd.c.

◆ rom105_fn

char* rom105_fn

Definition at line 644 of file commodore_lcd.c.

◆ romchr_fn

char* romchr_fn

Definition at line 645 of file commodore_lcd.c.

◆ roms

const unsigned char roms[]

◆ sdlrenderquality

int sdlrenderquality

Definition at line 638 of file commodore_lcd.c.

◆ size

int size

Definition at line 75 of file commodore_lcd.c.

◆ syscon

int syscon

Definition at line 636 of file commodore_lcd.c.

◆ zoom

int zoom

Definition at line 637 of file commodore_lcd.c.