Go to the documentation of this file.
27 __attribute__((leaf))
void pal_all(
const void *
data);
30 __attribute__((leaf))
void pal_bg(
const void *
data);
33 __attribute__((leaf))
void pal_spr(
const void *
data);
39 __attribute__((leaf))
void pal_clear(
void);
52 __attribute__((leaf))
void ppu_wait_nmi(
void);
56 __attribute__((leaf))
void ppu_wait_frame(
void);
78 __attribute__((leaf))
void oam_clear(
void);
81 __attribute__((leaf))
void oam_size(
char size);
85 __attribute__((leaf))
void oam_spr(
char x,
char y,
char chrnum,
char attr);
92 __attribute__((leaf))
void oam_meta_spr(
char x,
char y,
const void *
data);
97 __attribute__((leaf))
void oam_hide_rest(
void);
109 __attribute__((leaf))
char pad_poll(
char pad);
121 __attribute__((leaf))
void scroll(
unsigned x,
unsigned y);
130 __attribute__((leaf))
void split(
unsigned x);
133 __attribute__((leaf))
void bank_spr(
char n);
136 __attribute__((leaf))
void bank_bg(
char n);
139 __attribute__((leaf))
char rand8(
void);
142 __attribute__((leaf))
unsigned rand16(
void);
145 __attribute__((leaf))
void set_rand(
unsigned seed);
168 __attribute__((leaf))
void flush_vram_update(
const void *buf);
178 __attribute__((leaf))
void vram_fill(
char n,
unsigned len);
181 __attribute__((leaf))
void vram_inc(
char n);
185 __attribute__((leaf))
void vram_read(
void *dst,
unsigned size);
189 __attribute__((leaf))
void vram_write(
const void *
src,
unsigned size);
192 __attribute__((leaf))
void vram_unrle(
const void *
data);
195 void delay(
char frames);
199 #define PAD_SELECT 0x20
200 #define PAD_START 0x10
202 #define PAD_DOWN 0x04
203 #define PAD_LEFT 0x02
204 #define PAD_RIGHT 0x01
206 #define OAM_FLIP_V 0x80
207 #define OAM_FLIP_H 0x40
208 #define OAM_BEHIND 0x20
210 #define MAX(x1, x2) ((x1) < (x2) ? (x2) : (x1))
211 #define MIN(x1, x2) ((x1) < (x2) ? (x1) : (x2))
213 #define MASK_SPR 0x10
215 #define MASK_EDGE_SPR 0x04
216 #define MASK_EDGE_BG 0x02
218 #define NAMETABLE_A 0x2000
219 #define NAMETABLE_B 0x2400
220 #define NAMETABLE_C 0x2800
221 #define NAMETABLE_D 0x2c00
227 #define NT_UPD_HORZ 0x40
228 #define NT_UPD_VERT 0x80
229 #define NT_UPD_EOF 0xff
232 #define NTADR_A(x, y) (NAMETABLE_A | (((y) << 5) | (x)))
235 #define NTADR_B(x, y) (NAMETABLE_B | (((y) << 5) | (x)))
238 #define NTADR_C(x, y) (NAMETABLE_C | (((y) << 5) | (x)))
241 #define NTADR_D(x, y) (NAMETABLE_D | (((y) << 5) | (x)))
244 #define MSB(x) (((x) >> 8))
247 #define LSB(x) (((x)&0xff))
void set_vram_update(const void *buf)
unsigned len
Definition: neslib.h:178
char const void * data
Definition: neslib.h:92
void vram_adr(unsigned adr)
void pal_spr_bright(char bright)
char y
Definition: neslib.h:85
void pal_col(char index, char color)
void pal_bright(char bright)
char char char attr
Definition: neslib.h:85
char index
Definition: nesdoug.h:113
const void * src
Definition: memory.h:57
unsigned scroll
Definition: nesdoug.h:70
byte x
Definition: api.h:26
unsigned size
Definition: neslib.h:185
void pal_bg_bright(char bright)
char pad_trigger(char pad)
char char chrnum
Definition: neslib.h:85