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

Go to the source code of this file.

Macros

#define SCREEN_HEIGHT   (SCREEN_LAST_VISIBLE_SCANLINE - SCREEN_FIRST_VISIBLE_SCANLINE + 1)
 
#define SCREEN_WIDTH   (SCREEN_LAST_VISIBLE_DOTPOS - SCREEN_FIRST_VISIBLE_DOTPOS + 1)
 
#define VIRTUAL_SHIFT_POS   0x31
 
#define EMUPRINTF(...)
 

Functions

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

Macro Definition Documentation

◆ EMUPRINTF

#define EMUPRINTF (   ...)
Value:
do { \
char __buffer_for_conv__[8192]; \
snprintf(__buffer_for_conv__, sizeof __buffer_for_conv__, __VA_ARGS__); \
emuprint(__buffer_for_conv__); \
} while(0)

Definition at line 216 of file commodore_vic20.c.

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   (SCREEN_LAST_VISIBLE_SCANLINE - SCREEN_FIRST_VISIBLE_SCANLINE + 1)

Definition at line 31 of file commodore_vic20.c.

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   (SCREEN_LAST_VISIBLE_DOTPOS - SCREEN_FIRST_VISIBLE_DOTPOS + 1)

Definition at line 32 of file commodore_vic20.c.

◆ VIRTUAL_SHIFT_POS

#define VIRTUAL_SHIFT_POS   0x31

Definition at line 106 of file commodore_vic20.c.

Function Documentation

◆ clear_emu_events()

void clear_emu_events ( void  )

Definition at line 313 of file commodore_vic20.c.

Here is the call graph for this function:

◆ cpu65_illegal_opcode_callback()

void cpu65_illegal_opcode_callback ( void  )

Definition at line 305 of file commodore_vic20.c.

Here is the call graph for this function:

◆ cpu65_read_callback()

Uint8 cpu65_read_callback ( Uint16  addr)

Definition at line 362 of file commodore_vic20.c.

◆ cpu65_trap_callback()

int cpu65_trap_callback ( const Uint8  opcode)

Definition at line 271 of file commodore_vic20.c.

◆ cpu65_write_callback()

void cpu65_write_callback ( Uint16  addr,
Uint8  data 
)

Definition at line 322 of file commodore_vic20.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 349 of file commodore_vic20.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 386 of file commodore_vic20.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 493 of file commodore_vic20.c.

Here is the call graph for this function:

Variable Documentation

◆ bootmon

int bootmon

Definition at line 95 of file commodore_vic20.c.

◆ fullscreen

int fullscreen

Definition at line 95 of file commodore_vic20.c.

◆ prg

char* prg

Definition at line 96 of file commodore_vic20.c.

◆ ramexp

char* ramexp

Definition at line 97 of file commodore_vic20.c.

◆ rombasic

char* rombasic

Definition at line 99 of file commodore_vic20.c.

◆ romchr

char* romchr

Definition at line 98 of file commodore_vic20.c.

◆ romemu

char* romemu

Definition at line 101 of file commodore_vic20.c.

◆ romkernal

char* romkernal

Definition at line 100 of file commodore_vic20.c.

◆ sdlrenderquality

int sdlrenderquality

Definition at line 103 of file commodore_vic20.c.

◆ syscon

int syscon

Definition at line 102 of file commodore_vic20.c.