51 #if !defined(__C128__)
52 # error This module may only be used when compiling for the C128!
68 #define COLOR_BLACK 0x00
69 #define COLOR_WHITE 0x01
70 #define COLOR_RED 0x02
71 #define COLOR_CYAN 0x03
72 #define COLOR_PURPLE 0x04
73 #define COLOR_GREEN 0x05
74 #define COLOR_BLUE 0x06
75 #define COLOR_YELLOW 0x07
76 #define COLOR_ORANGE 0x08
77 #define COLOR_BROWN 0x09
78 #define COLOR_LIGHTRED 0x0A
79 #define COLOR_GRAY1 0x0B
80 #define COLOR_GRAY2 0x0C
81 #define COLOR_LIGHTGREEN 0x0D
82 #define COLOR_LIGHTBLUE 0x0E
83 #define COLOR_GRAY3 0x0F
86 #define JOY_UP_MASK 0x01
87 #define JOY_DOWN_MASK 0x02
88 #define JOY_LEFT_MASK 0x04
89 #define JOY_RIGHT_MASK 0x08
90 #define JOY_BTN_1_MASK 0x10
93 #define VIDEOMODE_40x25 0x00
94 #define VIDEOMODE_80x25 0x80
95 #define VIDEOMODE_40COL VIDEOMODE_40x25
96 #define VIDEOMODE_80COL VIDEOMODE_80x25
102 #define VIC (*(volatile struct __vic2*)0xD000)
105 #define SID (*(volatile struct __sid*)0xD400)
108 #define VDC (*(volatile struct __vdc*)0xD600)
111 #define CIA1 (*(volatile struct __6526*)0xDC00)
112 #define CIA2 (*(volatile struct __6526*)0xDD00)
117 #define COLOR_RAM ((volatile unsigned char*)0xD800)
132 __attribute__((noreturn))
unsigned char isfast(void)
Check CPU clock mode.
void slow(void)
Switch the CPU into 1MHz mode.
unsigned char videomode(unsigned char mode)
Set the video mode, return the old mode.
void fast(void)
Switch the CPU into 2MHz mode. Note: This will disable video when in 40 column mode.
const void uint16_t uint8_t mode
Definition: memory.h:58