forked from len0rd/rockbox
Major Rockboy update.
1) Adapt Rockboy to smaller screens (H10, X5, and iPod Nano). 2) Add the ability to use a preset palette on color targets. Choose 'Set Palette' from the main menu. 3) Clean up the code to remove any unused code and variables. 4) Changed tabs to spaces. 5) Disable reading and writing sound when sound is disabled. 6) Disbable writing to the RTC since it is not implemented yet. 7) Minor optimizations from WAC gnuboy CE and iBoy. 8) Massive clean up of code to make it appear consistent. 9) Change all C++ style comments to C style. 10) Completely reorganize dynarec. Add fixmes to all unimplemented opcodes. Add debug writes for all opcodes. Attempt to implement a few opcodes myself. 11) Silence some warnings when built using dynarec. 12) Minor reshuffling of IRAM, may or not offer a speed increase. 13) Include fixes found in the short-lived gnuboy CVS. All in all, there's about a 10% improvement on my test roms when sound is disabled and slight improvement with sound. Especially noticable when there are few sprites on screen and less action is occurring. See FS #6567. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12216 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1026c0f5b2
commit
2882b26a99
48 changed files with 4891 additions and 5419 deletions
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
struct vissprite
|
||||
{
|
||||
byte *buf;
|
||||
int x;
|
||||
byte pal, pri, pad[6];
|
||||
byte *buf;
|
||||
int x;
|
||||
byte pal, pri, pad[6];
|
||||
};
|
||||
|
||||
struct scan
|
||||
{
|
||||
int bg[64];
|
||||
int wnd[64];
|
||||
int bg[64];
|
||||
int wnd[64];
|
||||
#if LCD_DEPTH == 1
|
||||
byte buf[8][256];
|
||||
#elif LCD_DEPTH == 2
|
||||
|
|
@ -23,31 +23,29 @@ struct scan
|
|||
#elif LCD_DEPTH > 4
|
||||
byte buf[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;
|
||||
un16 pal[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;
|
||||
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];
|
||||
byte vbank[2][8192];
|
||||
union
|
||||
{
|
||||
byte mem[256];
|
||||
struct obj obj[40];
|
||||
} oam;
|
||||
byte pal[128];
|
||||
};
|
||||
|
||||
extern struct lcd lcd;
|
||||
|
|
@ -60,14 +58,13 @@ void bg_scan(void) ICODE_ATTR;
|
|||
void wnd_scan(void) ICODE_ATTR;
|
||||
void bg_scan_pri(void) ICODE_ATTR;
|
||||
void wnd_scan_pri(void) ICODE_ATTR;
|
||||
void spr_count(void);
|
||||
void spr_enum(void) ICODE_ATTR;
|
||||
void spr_scan(void) ICODE_ATTR;
|
||||
void lcd_begin(void) ICODE_ATTR;
|
||||
void lcd_refreshline(void) ICODE_ATTR;
|
||||
void pal_write(int i, byte b) ICODE_ATTR;
|
||||
void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR;
|
||||
void vram_write(int a, byte b) ICODE_ATTR;
|
||||
void vram_write(addr a, byte b) ICODE_ATTR;
|
||||
void vram_dirty(void) ICODE_ATTR;
|
||||
void pal_dirty(void) ICODE_ATTR;
|
||||
void lcd_reset(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue