diff options
Diffstat (limited to 'apps/plugins/rockboy/lcd-gb.h')
-rw-r--r-- | apps/plugins/rockboy/lcd-gb.h | 45 |
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 | ||
8 | struct vissprite | 8 | struct 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 | ||
15 | struct scan | 15 | struct 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 | ||
34 | struct obj | 32 | struct 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 | ||
42 | struct lcd | 40 | struct 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 | ||
53 | extern struct lcd lcd; | 51 | extern struct lcd lcd; |
@@ -60,14 +58,13 @@ void bg_scan(void) ICODE_ATTR; | |||
60 | void wnd_scan(void) ICODE_ATTR; | 58 | void wnd_scan(void) ICODE_ATTR; |
61 | void bg_scan_pri(void) ICODE_ATTR; | 59 | void bg_scan_pri(void) ICODE_ATTR; |
62 | void wnd_scan_pri(void) ICODE_ATTR; | 60 | void wnd_scan_pri(void) ICODE_ATTR; |
63 | void spr_count(void); | ||
64 | void spr_enum(void) ICODE_ATTR; | 61 | void spr_enum(void) ICODE_ATTR; |
65 | void spr_scan(void) ICODE_ATTR; | 62 | void spr_scan(void) ICODE_ATTR; |
66 | void lcd_begin(void) ICODE_ATTR; | 63 | void lcd_begin(void) ICODE_ATTR; |
67 | void lcd_refreshline(void) ICODE_ATTR; | 64 | void lcd_refreshline(void) ICODE_ATTR; |
68 | void pal_write(int i, byte b) ICODE_ATTR; | 65 | void pal_write(int i, byte b) ICODE_ATTR; |
69 | void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR; | 66 | void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR; |
70 | void vram_write(int a, byte b) ICODE_ATTR; | 67 | void vram_write(addr a, byte b) ICODE_ATTR; |
71 | void vram_dirty(void) ICODE_ATTR; | 68 | void vram_dirty(void) ICODE_ATTR; |
72 | void pal_dirty(void) ICODE_ATTR; | 69 | void pal_dirty(void) ICODE_ATTR; |
73 | void lcd_reset(void); | 70 | void lcd_reset(void); |