mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 10:02:45 -05:00
Added dynarec(under construction) and outline for lcd modes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6119 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
708e357a63
commit
3921e1aa69
10 changed files with 921 additions and 29 deletions
|
|
@ -17,7 +17,11 @@ union reg
|
|||
|
||||
struct cpu
|
||||
{
|
||||
#ifdef DYNAREC
|
||||
union reg a,b,c,d,e,hl,f,sp,pc;
|
||||
#else
|
||||
union reg pc, sp, bc, de, hl, af;
|
||||
#endif
|
||||
int ime, ima;
|
||||
int speed;
|
||||
int halt;
|
||||
|
|
@ -28,6 +32,20 @@ struct cpu
|
|||
|
||||
extern struct cpu cpu;
|
||||
|
||||
#ifdef DYNAREC
|
||||
struct dynarec_block {
|
||||
union reg address;
|
||||
void *block;
|
||||
int length;
|
||||
struct dynarec_block *next;
|
||||
};
|
||||
|
||||
#define HASH_SIGNIFICANT_LOWER_BITS 8
|
||||
#define HASH_BITMASK ((1<<HASH_SIGNIFICANT_LOWER_BITS)-1)
|
||||
|
||||
extern struct dynarec_block *address_map[1<<HASH_SIGNIFICANT_LOWER_BITS];
|
||||
extern int blockclen;
|
||||
#endif
|
||||
|
||||
void cpu_reset(void);
|
||||
void div_advance(int cnt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue