llvm-mos-sdk
|
Go to the source code of this file.
Macros | |
#define | COLOR_BLACK 0x00 |
#define | COLOR_WHITE 0x01 |
#define | COLOR_RED 0x02 |
#define | COLOR_CYAN 0x03 |
#define | COLOR_PURPLE 0x04 |
#define | COLOR_GREEN 0x05 |
#define | COLOR_BLUE 0x06 |
#define | COLOR_YELLOW 0x07 |
#define | COLOR_ORANGE 0x08 |
#define | COLOR_BROWN 0x09 |
#define | COLOR_LIGHTRED 0x0A |
#define | COLOR_GRAY1 0x0B |
#define | COLOR_GRAY2 0x0C |
#define | COLOR_LIGHTGREEN 0x0D |
#define | COLOR_LIGHTBLUE 0x0E |
#define | COLOR_GRAY3 0x0F |
#define | JOY_UP_MASK 0x10 |
#define | JOY_DOWN_MASK 0x20 |
#define | JOY_LEFT_MASK 0x40 |
#define | JOY_RIGHT_MASK 0x80 |
#define | JOY_BTN_1_MASK 0x01 |
#define | JOY_BTN_2_MASK 0x02 |
#define | JOY_BTN_3_MASK 0x04 |
#define | JOY_BTN_4_MASK 0x08 |
#define | JOY_BTN_A_MASK JOY_BTN_1_MASK |
#define | JOY_BTN_B_MASK JOY_BTN_2_MASK |
#define | JOY_SELECT_MASK JOY_BTN_3_MASK |
#define | JOY_START_MASK JOY_BTN_4_MASK |
#define | JOY_BTN_A(v) ((v) & JOY_BTN_A_MASK) |
#define | JOY_BTN_B(v) ((v) & JOY_BTN_B_MASK) |
#define | JOY_SELECT(v) ((v) & JOY_SELECT_MASK) |
#define | JOY_START(v) ((v) & JOY_START_MASK) |
#define | TV_NTSC 0 |
#define | TV_PAL 1 |
#define | TV_OTHER 2 |
#define | PPU (*(volatile struct __ppu*)0x2000) |
#define | SPRITE_DMA (APU.sprite.dma) |
#define | APU (*(volatile struct __apu*)0x4000) |
#define | JOYPAD ((volatile unsigned char *)0x4016) |
#define APU (*(volatile struct __apu*)0x4000) |
#define COLOR_BLACK 0x00 |
#define COLOR_BLUE 0x06 |
#define COLOR_BROWN 0x09 |
#define COLOR_CYAN 0x03 |
#define COLOR_GRAY1 0x0B |
#define COLOR_GRAY2 0x0C |
#define COLOR_GRAY3 0x0F |
#define COLOR_GREEN 0x05 |
#define COLOR_LIGHTBLUE 0x0E |
#define COLOR_LIGHTGREEN 0x0D |
#define COLOR_LIGHTRED 0x0A |
#define COLOR_ORANGE 0x08 |
#define COLOR_PURPLE 0x04 |
#define COLOR_RED 0x02 |
#define COLOR_WHITE 0x01 |
#define COLOR_YELLOW 0x07 |
#define JOY_BTN_1_MASK 0x01 |
#define JOY_BTN_2_MASK 0x02 |
#define JOY_BTN_3_MASK 0x04 |
#define JOY_BTN_4_MASK 0x08 |
#define JOY_BTN_A | ( | v | ) | ((v) & JOY_BTN_A_MASK) |
#define JOY_BTN_A_MASK JOY_BTN_1_MASK |
#define JOY_BTN_B | ( | v | ) | ((v) & JOY_BTN_B_MASK) |
#define JOY_BTN_B_MASK JOY_BTN_2_MASK |
#define JOY_DOWN_MASK 0x20 |
#define JOY_LEFT_MASK 0x40 |
#define JOY_RIGHT_MASK 0x80 |
#define JOY_SELECT | ( | v | ) | ((v) & JOY_SELECT_MASK) |
#define JOY_SELECT_MASK JOY_BTN_3_MASK |
#define JOY_START | ( | v | ) | ((v) & JOY_START_MASK) |
#define JOY_START_MASK JOY_BTN_4_MASK |
#define JOY_UP_MASK 0x10 |
#define JOYPAD ((volatile unsigned char *)0x4016) |
#define PPU (*(volatile struct __ppu*)0x2000) |
#define SPRITE_DMA (APU.sprite.dma) |
#define TV_NTSC 0 |
#define TV_OTHER 2 |
#define TV_PAL 1 |