llvm-mos-sdk
|
#include <_atarios.h>
#include <_gtia.h>
#include <_pbi.h>
#include <_pokey.h>
#include <_pia.h>
#include <_antic.h>
Go to the source code of this file.
Macros | |
#define | CH_DELCHR 0xFE /* delete char under the cursor */ |
#define | CH_ENTER 0x9B |
#define | CH_ESC 0x1B |
#define | CH_CURS_UP 28 |
#define | CH_CURS_DOWN 29 |
#define | CH_CURS_LEFT 30 |
#define | CH_CURS_RIGHT 31 |
#define | CH_TAB 0x7F /* tabulator */ |
#define | CH_EOL 0x9B /* end-of-line marker */ |
#define | CH_CLR 0x7D /* clear screen */ |
#define | CH_BEL 0xFD /* bell */ |
#define | CH_DEL 0x7E /* back space (delete char to the left) */ |
#define | CH_RUBOUT 0x7E /* back space (old, deprecated) */ |
#define | CH_DELLINE 0x9C /* delete line */ |
#define | CH_INSLINE 0x9D /* insert line */ |
#define | CH_F1 177 |
#define | CH_F2 178 |
#define | CH_F3 179 |
#define | CH_F4 180 |
#define | CH_F5 181 |
#define | CH_F6 182 |
#define | CH_F7 183 |
#define | CH_F8 184 |
#define | CH_F9 185 |
#define | CH_F10 176 |
#define | CH_ULCORNER 0x11 |
#define | CH_URCORNER 0x05 |
#define | CH_LLCORNER 0x1A |
#define | CH_LRCORNER 0x03 |
#define | CH_TTEE 0x17 |
#define | CH_BTEE 0x18 |
#define | CH_LTEE 0x01 |
#define | CH_RTEE 0x04 |
#define | CH_CROSS 0x13 |
#define | CH_HLINE 0x12 |
#define | CH_VLINE 0x7C |
#define | JOY_UP_MASK 0x01 |
#define | JOY_DOWN_MASK 0x02 |
#define | JOY_LEFT_MASK 0x04 |
#define | JOY_RIGHT_MASK 0x08 |
#define | JOY_BTN_1_MASK 0x10 |
#define | JOY_FIRE_MASK JOY_BTN_1_MASK |
#define | JOY_FIRE(v) ((v) & JOY_FIRE_MASK) |
#define | KEY_NONE ((unsigned char) 0xFF) |
#define | KEY_0 ((unsigned char) 0x32) |
#define | KEY_1 ((unsigned char) 0x1F) |
#define | KEY_2 ((unsigned char) 0x1E) |
#define | KEY_3 ((unsigned char) 0x1A) |
#define | KEY_4 ((unsigned char) 0x18) |
#define | KEY_5 ((unsigned char) 0x1D) |
#define | KEY_6 ((unsigned char) 0x1B) |
#define | KEY_7 ((unsigned char) 0x33) |
#define | KEY_8 ((unsigned char) 0x35) |
#define | KEY_9 ((unsigned char) 0x30) |
#define | KEY_A ((unsigned char) 0x3F) |
#define | KEY_B ((unsigned char) 0x15) |
#define | KEY_C ((unsigned char) 0x12) |
#define | KEY_D ((unsigned char) 0x3A) |
#define | KEY_E ((unsigned char) 0x2A) |
#define | KEY_F ((unsigned char) 0x38) |
#define | KEY_G ((unsigned char) 0x3D) |
#define | KEY_H ((unsigned char) 0x39) |
#define | KEY_I ((unsigned char) 0x0D) |
#define | KEY_J ((unsigned char) 0x01) |
#define | KEY_K ((unsigned char) 0x05) |
#define | KEY_L ((unsigned char) 0x00) |
#define | KEY_M ((unsigned char) 0x25) |
#define | KEY_N ((unsigned char) 0x23) |
#define | KEY_O ((unsigned char) 0x08) |
#define | KEY_P ((unsigned char) 0x0A) |
#define | KEY_Q ((unsigned char) 0x2F) |
#define | KEY_R ((unsigned char) 0x28) |
#define | KEY_S ((unsigned char) 0x3E) |
#define | KEY_T ((unsigned char) 0x2D) |
#define | KEY_U ((unsigned char) 0x0B) |
#define | KEY_V ((unsigned char) 0x10) |
#define | KEY_W ((unsigned char) 0x2E) |
#define | KEY_X ((unsigned char) 0x16) |
#define | KEY_Y ((unsigned char) 0x2B) |
#define | KEY_Z ((unsigned char) 0x17) |
#define | KEY_COMMA ((unsigned char) 0x20) |
#define | KEY_PERIOD ((unsigned char) 0x22) |
#define | KEY_SLASH ((unsigned char) 0x26) |
#define | KEY_SEMICOLON ((unsigned char) 0x02) |
#define | KEY_PLUS ((unsigned char) 0x06) |
#define | KEY_ASTERISK ((unsigned char) 0x07) |
#define | KEY_DASH ((unsigned char) 0x0E) |
#define | KEY_EQUALS ((unsigned char) 0x0F) |
#define | KEY_LESSTHAN ((unsigned char) 0x36) |
#define | KEY_GREATERTHAN ((unsigned char) 0x37) |
#define | KEY_ESC ((unsigned char) 0x1C) |
#define | KEY_TAB ((unsigned char) 0x2C) |
#define | KEY_SPACE ((unsigned char) 0x21) |
#define | KEY_RETURN ((unsigned char) 0x0C) |
#define | KEY_DELETE ((unsigned char) 0x34) |
#define | KEY_CAPS ((unsigned char) 0x3C) |
#define | KEY_INVERSE ((unsigned char) 0x27) |
#define | KEY_HELP ((unsigned char) 0x11) |
#define | KEY_F1 ((unsigned char) 0x03) |
#define | KEY_F2 ((unsigned char) 0x04) |
#define | KEY_F3 ((unsigned char) 0x13) |
#define | KEY_F4 ((unsigned char) 0x14) |
#define | KEY_CTRL ((unsigned char) 0x80) |
#define | KEY_SHIFT ((unsigned char) 0x40) |
#define | KEY_EXCLAMATIONMARK (KEY_1 | KEY_SHIFT) |
#define | KEY_QUOTE (KEY_2 | KEY_SHIFT) |
#define | KEY_HASH (KEY_3 | KEY_SHIFT) |
#define | KEY_DOLLAR (KEY_4 | KEY_SHIFT) |
#define | KEY_PERCENT (KEY_5 | KEY_SHIFT) |
#define | KEY_AMPERSAND (KEY_6 | KEY_SHIFT) |
#define | KEY_APOSTROPHE (KEY_7 | KEY_SHIFT) |
#define | KEY_AT (KEY_8 | KEY_SHIFT) |
#define | KEY_OPENINGPARAN (KEY_9 | KEY_SHIFT) |
#define | KEY_CLOSINGPARAN (KEY_0 | KEY_SHIFT) |
#define | KEY_UNDERLINE (KEY_DASH | KEY_SHIFT) |
#define | KEY_BAR (KEY_EQUALS | KEY_SHIFT) |
#define | KEY_COLON (KEY_SEMICOLON | KEY_SHIFT) |
#define | KEY_BACKSLASH (KEY_PLUS | KEY_SHIFT) |
#define | KEY_CIRCUMFLEX (KEY_ASTERISK | KEY_SHIFT) |
#define | KEY_OPENINGBRACKET (KEY_COMMA | KEY_SHIFT) |
#define | KEY_CLOSINGBRACKET (KEY_PERIOD | KEY_SHIFT) |
#define | KEY_QUESTIONMARK (KEY_SLASH | KEY_SHIFT) |
#define | KEY_CLEAR (KEY_LESSTHAN | KEY_SHIFT) |
#define | KEY_INSERT (KEY_GREATERTHAN | KEY_SHIFT) |
#define | KEY_UP (KEY_DASH | KEY_CTRL) |
#define | KEY_DOWN (KEY_EQUALS | KEY_CTRL) |
#define | KEY_LEFT (KEY_PLUS | KEY_CTRL) |
#define | KEY_RIGHT (KEY_ASTERISK | KEY_CTRL) |
#define | OS (*(volatile struct __os*)0x0000) |
#define | BASIC (*(volatile struct __basic*)0x0080) |
#define | GTIA_READ (*(volatile struct __gtia_read*)0xD000) |
#define | GTIA_WRITE (*(volatile struct __gtia_write*)0xD000) |
#define | POKEY_READ (*(volatile struct __pokey_read*)0xD200) |
#define | POKEY_WRITE (*(volatile struct __pokey_write*)0xD200) |
#define | PIA (*(volatile struct __pia*)0xD300) |
#define | ANTIC (*(volatile struct __antic*)0xD400) |
#define | COLOR_BLACK GTIA_COLOR_BLACK |
#define | COLOR_WHITE GTIA_COLOR_WHITE |
#define | COLOR_RED GTIA_COLOR_RED |
#define | COLOR_CYAN GTIA_COLOR_CYAN |
#define | COLOR_PURPLE GTIA_COLOR_VIOLET |
#define | COLOR_GREEN GTIA_COLOR_GREEN |
#define | COLOR_BLUE GTIA_COLOR_BLUE |
#define | COLOR_YELLOW GTIA_COLOR_YELLOW |
#define | COLOR_ORANGE GTIA_COLOR_ORANGE |
#define | COLOR_BROWN GTIA_COLOR_BROWN |
#define | COLOR_LIGHTRED GTIA_COLOR_LIGHTRED |
#define | COLOR_GRAY1 GTIA_COLOR_GRAY1 |
#define | COLOR_GRAY2 GTIA_COLOR_GRAY2 |
#define | COLOR_LIGHTGREEN GTIA_COLOR_LIGHTGREEN |
#define | COLOR_LIGHTBLUE GTIA_COLOR_LIGHTBLUE |
#define | COLOR_GRAY3 GTIA_COLOR_GRAY3 |
#define | PORTA_PTRIG3 0x80 |
#define | PORTA_PTRIG2 0x40 |
#define | PORTA_PTRIG1 0x08 |
#define | PORTA_PTRIG0 0x04 |
#define | PORTB_PTRIG7 0x80 |
#define | PORTB_PTRIG6 0x40 |
#define | PORTB_PTRIG5 0x08 |
#define | PORTB_PTRIG4 0x04 |
#define | PORTB_OSROM 0x01 |
#define | PORTB_BASICROM 0x02 |
#define | PORTB_LED1 0x04 |
#define | PORTB_LED2 0x08 |
#define | PORTB_BANKSELECT1 0x00 |
#define | PORTB_BANKSELECT2 0x04 |
#define | PORTB_BANKSELECT3 0x08 |
#define | PORTB_BANKSELECT4 0x0C |
#define | PORTB_BANKSWITCH_CPU 0x10 |
#define | PORTB_BANKSWITCH_ANTIC 0x20 |
#define | PORTB_SELFTEST 0x80 |
#define | PxCTL_IRQ_ENABLE 0x01 /* bit 0 */ |
#define | PxCTL_ADDRESSING 0x04 /* bit 2 */ |
#define | PACTL_MOTOR_CONTROL 0x08 /* bit 3 */ |
#define | PBCTL_PERIPH_CMD_IDENT 0x08 /* bit 3 */ |
#define | PxCTL_IRQ_STATUS 0x80 |
#define | _textcolor(color) COLOR_WHITE |
#define _textcolor | ( | color | ) | COLOR_WHITE |
#define ANTIC (*(volatile struct __antic*)0xD400) |
#define BASIC (*(volatile struct __basic*)0x0080) |
#define CH_BEL 0xFD /* bell */ |
#define CH_BTEE 0x18 |
#define CH_CLR 0x7D /* clear screen */ |
#define CH_CROSS 0x13 |
#define CH_CURS_DOWN 29 |
#define CH_CURS_LEFT 30 |
#define CH_CURS_RIGHT 31 |
#define CH_CURS_UP 28 |
#define CH_DEL 0x7E /* back space (delete char to the left) */ |
#define CH_DELCHR 0xFE /* delete char under the cursor */ |
#define CH_DELLINE 0x9C /* delete line */ |
#define CH_ENTER 0x9B |
#define CH_EOL 0x9B /* end-of-line marker */ |
#define CH_ESC 0x1B |
#define CH_F1 177 |
#define CH_F10 176 |
#define CH_F2 178 |
#define CH_F3 179 |
#define CH_F4 180 |
#define CH_F5 181 |
#define CH_F6 182 |
#define CH_F7 183 |
#define CH_F8 184 |
#define CH_F9 185 |
#define CH_HLINE 0x12 |
#define CH_INSLINE 0x9D /* insert line */ |
#define CH_LLCORNER 0x1A |
#define CH_LRCORNER 0x03 |
#define CH_LTEE 0x01 |
#define CH_RTEE 0x04 |
#define CH_RUBOUT 0x7E /* back space (old, deprecated) */ |
#define CH_TAB 0x7F /* tabulator */ |
#define CH_TTEE 0x17 |
#define CH_ULCORNER 0x11 |
#define CH_URCORNER 0x05 |
#define CH_VLINE 0x7C |
#define COLOR_BLACK GTIA_COLOR_BLACK |
#define COLOR_BLUE GTIA_COLOR_BLUE |
#define COLOR_BROWN GTIA_COLOR_BROWN |
#define COLOR_CYAN GTIA_COLOR_CYAN |
#define COLOR_GRAY1 GTIA_COLOR_GRAY1 |
#define COLOR_GRAY2 GTIA_COLOR_GRAY2 |
#define COLOR_GRAY3 GTIA_COLOR_GRAY3 |
#define COLOR_GREEN GTIA_COLOR_GREEN |
#define COLOR_LIGHTBLUE GTIA_COLOR_LIGHTBLUE |
#define COLOR_LIGHTGREEN GTIA_COLOR_LIGHTGREEN |
#define COLOR_LIGHTRED GTIA_COLOR_LIGHTRED |
#define COLOR_ORANGE GTIA_COLOR_ORANGE |
#define COLOR_PURPLE GTIA_COLOR_VIOLET |
#define COLOR_RED GTIA_COLOR_RED |
#define COLOR_WHITE GTIA_COLOR_WHITE |
#define COLOR_YELLOW GTIA_COLOR_YELLOW |
#define GTIA_READ (*(volatile struct __gtia_read*)0xD000) |
#define GTIA_WRITE (*(volatile struct __gtia_write*)0xD000) |
#define JOY_BTN_1_MASK 0x10 |
#define JOY_DOWN_MASK 0x02 |
#define JOY_FIRE | ( | v | ) | ((v) & JOY_FIRE_MASK) |
#define JOY_FIRE_MASK JOY_BTN_1_MASK |
#define JOY_LEFT_MASK 0x04 |
#define JOY_RIGHT_MASK 0x08 |
#define JOY_UP_MASK 0x01 |
#define KEY_0 ((unsigned char) 0x32) |
#define KEY_1 ((unsigned char) 0x1F) |
#define KEY_2 ((unsigned char) 0x1E) |
#define KEY_3 ((unsigned char) 0x1A) |
#define KEY_4 ((unsigned char) 0x18) |
#define KEY_5 ((unsigned char) 0x1D) |
#define KEY_6 ((unsigned char) 0x1B) |
#define KEY_7 ((unsigned char) 0x33) |
#define KEY_8 ((unsigned char) 0x35) |
#define KEY_9 ((unsigned char) 0x30) |
#define KEY_A ((unsigned char) 0x3F) |
#define KEY_ASTERISK ((unsigned char) 0x07) |
#define KEY_B ((unsigned char) 0x15) |
#define KEY_BAR (KEY_EQUALS | KEY_SHIFT) |
#define KEY_C ((unsigned char) 0x12) |
#define KEY_CAPS ((unsigned char) 0x3C) |
#define KEY_CIRCUMFLEX (KEY_ASTERISK | KEY_SHIFT) |
#define KEY_CLEAR (KEY_LESSTHAN | KEY_SHIFT) |
#define KEY_CLOSINGBRACKET (KEY_PERIOD | KEY_SHIFT) |
#define KEY_COLON (KEY_SEMICOLON | KEY_SHIFT) |
#define KEY_COMMA ((unsigned char) 0x20) |
#define KEY_CTRL ((unsigned char) 0x80) |
#define KEY_D ((unsigned char) 0x3A) |
#define KEY_DASH ((unsigned char) 0x0E) |
#define KEY_DELETE ((unsigned char) 0x34) |
#define KEY_DOWN (KEY_EQUALS | KEY_CTRL) |
#define KEY_E ((unsigned char) 0x2A) |
#define KEY_EQUALS ((unsigned char) 0x0F) |
#define KEY_ESC ((unsigned char) 0x1C) |
#define KEY_F ((unsigned char) 0x38) |
#define KEY_F1 ((unsigned char) 0x03) |
#define KEY_F2 ((unsigned char) 0x04) |
#define KEY_F3 ((unsigned char) 0x13) |
#define KEY_F4 ((unsigned char) 0x14) |
#define KEY_G ((unsigned char) 0x3D) |
#define KEY_GREATERTHAN ((unsigned char) 0x37) |
#define KEY_H ((unsigned char) 0x39) |
#define KEY_HELP ((unsigned char) 0x11) |
#define KEY_I ((unsigned char) 0x0D) |
#define KEY_INSERT (KEY_GREATERTHAN | KEY_SHIFT) |
#define KEY_INVERSE ((unsigned char) 0x27) |
#define KEY_J ((unsigned char) 0x01) |
#define KEY_K ((unsigned char) 0x05) |
#define KEY_L ((unsigned char) 0x00) |
#define KEY_LESSTHAN ((unsigned char) 0x36) |
#define KEY_M ((unsigned char) 0x25) |
#define KEY_N ((unsigned char) 0x23) |
#define KEY_NONE ((unsigned char) 0xFF) |
#define KEY_O ((unsigned char) 0x08) |
#define KEY_P ((unsigned char) 0x0A) |
#define KEY_PERIOD ((unsigned char) 0x22) |
#define KEY_PLUS ((unsigned char) 0x06) |
#define KEY_Q ((unsigned char) 0x2F) |
#define KEY_R ((unsigned char) 0x28) |
#define KEY_RETURN ((unsigned char) 0x0C) |
#define KEY_RIGHT (KEY_ASTERISK | KEY_CTRL) |
#define KEY_S ((unsigned char) 0x3E) |
#define KEY_SEMICOLON ((unsigned char) 0x02) |
#define KEY_SHIFT ((unsigned char) 0x40) |
#define KEY_SLASH ((unsigned char) 0x26) |
#define KEY_SPACE ((unsigned char) 0x21) |
#define KEY_T ((unsigned char) 0x2D) |
#define KEY_TAB ((unsigned char) 0x2C) |
#define KEY_U ((unsigned char) 0x0B) |
#define KEY_V ((unsigned char) 0x10) |
#define KEY_W ((unsigned char) 0x2E) |
#define KEY_X ((unsigned char) 0x16) |
#define KEY_Y ((unsigned char) 0x2B) |
#define KEY_Z ((unsigned char) 0x17) |
#define OS (*(volatile struct __os*)0x0000) |
#define PACTL_MOTOR_CONTROL 0x08 /* bit 3 */ |
#define PBCTL_PERIPH_CMD_IDENT 0x08 /* bit 3 */ |
#define PIA (*(volatile struct __pia*)0xD300) |
#define POKEY_READ (*(volatile struct __pokey_read*)0xD200) |
#define POKEY_WRITE (*(volatile struct __pokey_write*)0xD200) |
#define PORTA_PTRIG0 0x04 |
#define PORTA_PTRIG1 0x08 |
#define PORTA_PTRIG2 0x40 |
#define PORTA_PTRIG3 0x80 |
#define PORTB_BANKSELECT1 0x00 |
#define PORTB_BANKSELECT2 0x04 |
#define PORTB_BANKSELECT3 0x08 |
#define PORTB_BANKSELECT4 0x0C |
#define PORTB_BANKSWITCH_ANTIC 0x20 |
#define PORTB_BANKSWITCH_CPU 0x10 |
#define PORTB_BASICROM 0x02 |
#define PORTB_LED1 0x04 |
#define PORTB_LED2 0x08 |
#define PORTB_OSROM 0x01 |
#define PORTB_PTRIG4 0x04 |
#define PORTB_PTRIG5 0x08 |
#define PORTB_PTRIG6 0x40 |
#define PORTB_PTRIG7 0x80 |
#define PORTB_SELFTEST 0x80 |
#define PxCTL_ADDRESSING 0x04 /* bit 2 */ |
#define PxCTL_IRQ_ENABLE 0x01 /* bit 0 */ |
#define PxCTL_IRQ_STATUS 0x80 |