diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-07-03 14:05:12 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-03 14:05:12 +0000 |
commit | d2456b44f73e6a1310d8dc2c98db92364b70e793 (patch) | |
tree | 5f6a7ff48924ebb9b35dd57775c4538d3388d136 /apps/plugins/rockboy/lcd-gb.h | |
parent | d50ed1248de6f347e928bae349c3393696a0383f (diff) |
Centralised the ICODE_ATTR and IDATA_ATTR #defines. Renamed some musepack and rockboy headers to avoid clashes with rockbox headers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/lcd-gb.h')
-rw-r--r-- | apps/plugins/rockboy/lcd-gb.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/lcd-gb.h b/apps/plugins/rockboy/lcd-gb.h new file mode 100644 index 0000000000..3a612887e5 --- /dev/null +++ b/apps/plugins/rockboy/lcd-gb.h @@ -0,0 +1,76 @@ + + +#ifndef __LCD_GB_H__ +#define __LCD_GB_H__ + +#include "defs.h" + +struct vissprite +{ + byte *buf; + int x; + byte pal, pri, pad[6]; +}; + +struct scan +{ + int bg[64]; + int wnd[64]; +#ifdef GRAYSCALE + byte buf[4][256]; +#else + byte buf[8][256]; +#endif + byte pal1[128]; + un16 pal2[64]; + un32 pal4[64]; + byte pri[256]; + struct vissprite vs[16]; + int ns, l, x, y, s, t, u, v, wx, wy, wt, wv; +}; + +struct obj +{ + byte y; + byte x; + byte pat; + byte flags; +}; + +struct lcd +{ + byte vbank[2][8192]; + union + { + byte mem[256]; + struct obj obj[40]; + } oam; + byte pal[128]; +}; + +extern struct lcd lcd; +extern struct scan scan; + + +void updatepatpix(void) ICODE_ATTR; +void tilebuf(void); +void bg_scan(void); +void wnd_scan(void); +void bg_scan_pri(void); +void wnd_scan_pri(void); +void spr_count(void); +void spr_enum(void); +void spr_scan(void); +void lcd_begin(void); +void lcd_refreshline(void); +void pal_write(int i, byte b); +void pal_write_dmg(int i, int mapnum, byte d); +void vram_write(int a, byte b); +void vram_dirty(void); +void pal_dirty(void); +void lcd_reset(void); + +#endif + + + |