12 byte pal
, pri
, pad
[6];
24 struct vissprite vs
[16];
25 int ns
, l
, x
, y
, s
, t
, u
, v
, wx
, wy
, wt
, wv
;
47 extern struct lcd lcd
;
48 extern struct scan scan
;
57 void wnd_scan_color();
62 void lcd_refreshline();
63 void pal_write(int i
, byte b
);
64 void pal_write_dmg(int i
, int mapnum
, byte d
);
65 void vram_write(int a
, byte b
);
70 #define LCDC_BIT_BG_EN (1<<0) /* BG display off or on - CGB: always on */
71 #define LCDC_BIT_OBJ_EN (1<<1) /* OBJs off or on */
72 #define LCDC_BIT_OBJ_SIZE (1<<2) /* OBJ size: 0:8x8 1:8x16 */
73 #define LCDC_BIT_BG_MAP (1<<3) /* BG code area 0:9800-9bff, 1:9c00-9fff */
74 #define LCDC_BIT_TILE_SEL (1<<4) /* BG char data 0:8800-97ff, 1:8000-8fff */
75 #define LCDC_BIT_WIN_EN (1<<5) /* WIN off or on */
76 #define LCDC_BIT_WIN_MAP (1<<6) /* WIN code area 0:9800-9bff, 1:9c00-9fff */
77 #define LCDC_BIT_LCD_EN (1<<7) /* LCD controller off or on */