Module c64

Module c64 

Source
Expand description

Commodore 64 support.

Future information may be incorporated using the Ultimate Commodore 64 Reference

Structs§

CIA1ControlAFlags
Flags for the CIA1::control_a register (0xdc0e)
CpuPortFlags
Control flags for the CPU port R6510 at 0x0001

Enums§

Keyboard
Special keyboard and PETSCII codes
VicBank

Constants§

BASIC_ROM
Pointer to BASIC ROM start (0xa000)
BASIC_ROM_AREA
Pointer to BASIC ROM area (0xa000 - 0xbfff)
CIA1
Pointer to first complex interface adapter (0xdc00)
CIA2
Pointer to second complex interface adapter (0xdd00)
COLOR_RAM
Pointer to default color RAM (0xd800)
CPU_PORT
Pointer to the R6510 register for 6510 I/O (0x0001)
DEFAULT_MIXEDCASE_FONT
Default mixed case font in the CHARROM (0x1800)
DEFAULT_SPRITE_PTR
Default sprite shape pointers (0x0400)
DEFAULT_UPPERCASE_FONT
Default upper case font in the CHARROM (0x1000)
DEFAULT_VIDEO_MATRIX
Pointer to the default video matrix area (0x0400)
DEFAULT_VIDEO_MEMORY
Pointer to beginning of default video memory (0x0400)
KERNAL_ROM
Pointer to the KERNAL ROM memory area (0xe000 - 0xffff)
SID
Pointer to the sound interface device (0xd400)
VIC
Pointer to the video interface controller (0xd000)

Functions§

cia1
Get reference to CIA1 chip
cia2
Get reference to CIA2 chip
clear_screen
Clears screen, functional style (fill with SPACE character)
hardware_raster_irq
Setup hardware raster interrupt (0xfffe)
set_lower_case
Shift to lower case ROM charset
set_upper_case
Shift to upper case ROM charset
sid
Get reference to SID chip
vic2
Get reference to VIC2 chip