summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcd-gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/lcd-gb.h')
-rw-r--r--apps/plugins/rockboy/lcd-gb.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/apps/plugins/rockboy/lcd-gb.h b/apps/plugins/rockboy/lcd-gb.h
index aafeaec165..91f2487462 100644
--- a/apps/plugins/rockboy/lcd-gb.h
+++ b/apps/plugins/rockboy/lcd-gb.h
@@ -7,15 +7,15 @@
7 7
8struct vissprite 8struct vissprite
9{ 9{
10 byte *buf; 10 byte *buf;
11 int x; 11 int x;
12 byte pal, pri, pad[6]; 12 byte pal, pri, pad[6];
13}; 13};
14 14
15struct scan 15struct scan
16{ 16{
17 int bg[64]; 17 int bg[64];
18 int wnd[64]; 18 int wnd[64];
19#if LCD_DEPTH == 1 19#if LCD_DEPTH == 1
20 byte buf[8][256]; 20 byte buf[8][256];
21#elif LCD_DEPTH == 2 21#elif LCD_DEPTH == 2
@@ -23,31 +23,29 @@ struct scan
23#elif LCD_DEPTH > 4 23#elif LCD_DEPTH > 4
24 byte buf[256]; 24 byte buf[256];
25#endif 25#endif
26 byte pal1[128]; 26 un16 pal[64];
27 un16 pal2[64]; 27 byte pri[256];
28 un32 pal4[64]; 28 struct vissprite vs[16];
29 byte pri[256]; 29 int ns, l, x, y, s, t, u, v, wx, wy, wt, wv;
30 struct vissprite vs[16];
31 int ns, l, x, y, s, t, u, v, wx, wy, wt, wv;
32}; 30};
33 31
34struct obj 32struct obj
35{ 33{
36 byte y; 34 byte y;
37 byte x; 35 byte x;
38 byte pat; 36 byte pat;
39 byte flags; 37 byte flags;
40}; 38};
41 39
42struct lcd 40struct lcd
43{ 41{
44 byte vbank[2][8192]; 42 byte vbank[2][8192];
45 union 43 union
46 { 44 {
47 byte mem[256]; 45 byte mem[256];
48 struct obj obj[40]; 46 struct obj obj[40];
49 } oam; 47 } oam;
50 byte pal[128]; 48 byte pal[128];
51}; 49};
52 50
53extern struct lcd lcd; 51extern struct lcd lcd;
@@ -60,14 +58,13 @@ void bg_scan(void) ICODE_ATTR;
60void wnd_scan(void) ICODE_ATTR; 58void wnd_scan(void) ICODE_ATTR;
61void bg_scan_pri(void) ICODE_ATTR; 59void bg_scan_pri(void) ICODE_ATTR;
62void wnd_scan_pri(void) ICODE_ATTR; 60void wnd_scan_pri(void) ICODE_ATTR;
63void spr_count(void);
64void spr_enum(void) ICODE_ATTR; 61void spr_enum(void) ICODE_ATTR;
65void spr_scan(void) ICODE_ATTR; 62void spr_scan(void) ICODE_ATTR;
66void lcd_begin(void) ICODE_ATTR; 63void lcd_begin(void) ICODE_ATTR;
67void lcd_refreshline(void) ICODE_ATTR; 64void lcd_refreshline(void) ICODE_ATTR;
68void pal_write(int i, byte b) ICODE_ATTR; 65void pal_write(int i, byte b) ICODE_ATTR;
69void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR; 66void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR;
70void vram_write(int a, byte b) ICODE_ATTR; 67void vram_write(addr a, byte b) ICODE_ATTR;
71void vram_dirty(void) ICODE_ATTR; 68void vram_dirty(void) ICODE_ATTR;
72void pal_dirty(void) ICODE_ATTR; 69void pal_dirty(void) ICODE_ATTR;
73void lcd_reset(void); 70void lcd_reset(void);