llvm-mos-sdk
|
#include <famitone2.h>
Go to the source code of this file.
Macros | |
#define | PAD_A 0x80 |
#define | PAD_B 0x40 |
#define | PAD_SELECT 0x20 |
#define | PAD_START 0x10 |
#define | PAD_UP 0x08 |
#define | PAD_DOWN 0x04 |
#define | PAD_LEFT 0x02 |
#define | PAD_RIGHT 0x01 |
#define | OAM_FLIP_V 0x80 |
#define | OAM_FLIP_H 0x40 |
#define | OAM_BEHIND 0x20 |
#define | MAX(x1, x2) ((x1) < (x2) ? (x2) : (x1)) |
#define | MIN(x1, x2) ((x1) < (x2) ? (x1) : (x2)) |
#define | MASK_SPR 0x10 |
#define | MASK_BG 0x08 |
#define | MASK_EDGE_SPR 0x04 |
#define | MASK_EDGE_BG 0x02 |
#define | NAMETABLE_A 0x2000 |
#define | NAMETABLE_B 0x2400 |
#define | NAMETABLE_C 0x2800 |
#define | NAMETABLE_D 0x2c00 |
#define | NULL 0 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | NT_UPD_HORZ 0x40 |
#define | NT_UPD_VERT 0x80 |
#define | NT_UPD_EOF 0xff |
#define | NTADR_A(x, y) (NAMETABLE_A | (((y) << 5) | (x))) |
#define | NTADR_B(x, y) (NAMETABLE_B | (((y) << 5) | (x))) |
#define | NTADR_C(x, y) (NAMETABLE_C | (((y) << 5) | (x))) |
#define | NTADR_D(x, y) (NAMETABLE_D | (((y) << 5) | (x))) |
#define | MSB(x) (((x) >> 8)) |
#define | LSB(x) (((x)&0xff)) |
Functions | |
void | pal_col (char index, char color) |
void | pal_bright (char bright) |
void | pal_spr_bright (char bright) |
void | pal_bg_bright (char bright) |
void | ppu_off (void) |
void | ppu_on_all (void) |
void | ppu_on_bg (void) |
void | ppu_on_spr (void) |
void | ppu_mask (char mask) |
char | ppu_system (void) |
void | oam_set (char index) |
char | oam_get (void) |
char | pad_trigger (char pad) |
char | pad_state (char pad) |
void | set_vram_update (const void *buf) |
void | vram_adr (unsigned adr) |
void | vram_put (char n) |
void | delay (char frames) |
Variables | |
char | y |
char char | chrnum |
char char char | attr |
char const void * | data |
unsigned | len |
unsigned | size |
#define FALSE 0 |
#define MASK_BG 0x08 |
#define MASK_EDGE_BG 0x02 |
#define MASK_EDGE_SPR 0x04 |
#define MASK_SPR 0x10 |
#define NAMETABLE_A 0x2000 |
#define NAMETABLE_B 0x2400 |
#define NAMETABLE_C 0x2800 |
#define NAMETABLE_D 0x2c00 |
#define NT_UPD_EOF 0xff |
#define NT_UPD_HORZ 0x40 |
#define NT_UPD_VERT 0x80 |
#define NTADR_A | ( | x, | |
y | |||
) | (NAMETABLE_A | (((y) << 5) | (x))) |
#define NTADR_B | ( | x, | |
y | |||
) | (NAMETABLE_B | (((y) << 5) | (x))) |
#define NTADR_C | ( | x, | |
y | |||
) | (NAMETABLE_C | (((y) << 5) | (x))) |
#define NTADR_D | ( | x, | |
y | |||
) | (NAMETABLE_D | (((y) << 5) | (x))) |
#define NULL 0 |
#define OAM_BEHIND 0x20 |
#define OAM_FLIP_H 0x40 |
#define OAM_FLIP_V 0x80 |
#define PAD_A 0x80 |
#define PAD_B 0x40 |
#define PAD_DOWN 0x04 |
#define PAD_LEFT 0x02 |
#define PAD_RIGHT 0x01 |
#define PAD_SELECT 0x20 |
#define PAD_START 0x10 |
#define PAD_UP 0x08 |
#define TRUE 1 |
void delay | ( | char | frames | ) |
char oam_get | ( | void | ) |
void oam_set | ( | char | index | ) |
char pad_state | ( | char | pad | ) |
char pad_trigger | ( | char | pad | ) |
void pal_bg_bright | ( | char | bright | ) |
void pal_bright | ( | char | bright | ) |
void pal_col | ( | char | index, |
char | color | ||
) |
void pal_spr_bright | ( | char | bright | ) |
void ppu_mask | ( | char | mask | ) |
void ppu_off | ( | void | ) |
void ppu_on_all | ( | void | ) |
void ppu_on_bg | ( | void | ) |
void ppu_on_spr | ( | void | ) |
char ppu_system | ( | void | ) |
void set_vram_update | ( | const void * | buf | ) |
void vram_adr | ( | unsigned | adr | ) |
void vram_put | ( | char | n | ) |
char char char attr |
char char chrnum |
char const void* data |
unsigned len |
unsigned size |
unsigned y |