#include <_vic2.h>
#include <_sid.h>
#include <_vdc.h>
#include <_6526.h>
Go to the source code of this file.
|
| unsigned char | videomode (unsigned char mode) |
| | Set the video mode, return the old mode. More...
|
| |
| void | fast (void) |
| | Switch the CPU into 2MHz mode. Note: This will disable video when in 40 column mode. More...
|
| |
| void | slow (void) |
| | Switch the CPU into 1MHz mode. More...
|
| |
| unsigned char | isfast (void) |
| | Check CPU clock mode. More...
|
| |
◆ CH_F1
◆ CH_F2
◆ CH_F3
◆ CH_F4
◆ CH_F5
◆ CH_F6
◆ CH_F7
◆ CH_F8
◆ CIA1
| #define CIA1 (*(volatile struct __6526*)0xDC00) |
◆ CIA2
| #define CIA2 (*(volatile struct __6526*)0xDD00) |
◆ COLOR_BLACK
◆ COLOR_BLUE
◆ COLOR_BROWN
◆ COLOR_CYAN
◆ COLOR_GRAY1
◆ COLOR_GRAY2
◆ COLOR_GRAY3
◆ COLOR_GREEN
◆ COLOR_LIGHTBLUE
| #define COLOR_LIGHTBLUE 0x0E |
◆ COLOR_LIGHTGREEN
| #define COLOR_LIGHTGREEN 0x0D |
◆ COLOR_LIGHTRED
| #define COLOR_LIGHTRED 0x0A |
◆ COLOR_ORANGE
| #define COLOR_ORANGE 0x08 |
◆ COLOR_PURPLE
| #define COLOR_PURPLE 0x04 |
◆ COLOR_RAM
| #define COLOR_RAM ((volatile unsigned char*)0xD800) |
◆ COLOR_RED
◆ COLOR_WHITE
◆ COLOR_YELLOW
| #define COLOR_YELLOW 0x07 |
◆ JOY_BTN_1_MASK
| #define JOY_BTN_1_MASK 0x10 |
◆ JOY_DOWN_MASK
| #define JOY_DOWN_MASK 0x02 |
◆ JOY_LEFT_MASK
| #define JOY_LEFT_MASK 0x04 |
◆ JOY_RIGHT_MASK
| #define JOY_RIGHT_MASK 0x08 |
◆ JOY_UP_MASK
◆ SID
| #define SID (*(volatile struct __sid*)0xD400) |
◆ VDC
| #define VDC (*(volatile struct __vdc*)0xD600) |
◆ VIC
| #define VIC (*(volatile struct __vic2*)0xD000) |
◆ VIDEOMODE_40COL
◆ VIDEOMODE_40x25
| #define VIDEOMODE_40x25 0x00 |
◆ VIDEOMODE_80COL
◆ VIDEOMODE_80x25
| #define VIDEOMODE_80x25 0x80 |
◆ fast()
Switch the CPU into 2MHz mode. Note: This will disable video when in 40 column mode.
◆ isfast()
| unsigned char isfast |
( |
void |
| ) |
|
Check CPU clock mode.
- Returns
- unsigned char 1 if the CPU is in 2MHz mode.
◆ slow()
Switch the CPU into 1MHz mode.
◆ videomode()
| unsigned char videomode |
( |
unsigned char |
mode | ) |
|
Set the video mode, return the old mode.
- Parameters
-
| mode | The video mode. Use one of the VIDEOMODE_xx constants. |
- Returns
- unsigned char The old mode.