mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
svp compiler: few ops, bugfixes, code seems to work
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@375 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
a12b1b29cc
commit
6e39239fb9
4 changed files with 121 additions and 77 deletions
|
@ -134,7 +134,15 @@
|
|||
#define EOP_C_MRS(cond,rd) \
|
||||
EMIT(((cond)<<28) | 0x010f0000 | ((rd)<<12))
|
||||
|
||||
#define EOP_MRS(rd) EOP_C_MRS(A_COND_AL,rd)
|
||||
#define EOP_C_MSR_IMM(cond,ror2,imm) \
|
||||
EMIT(((cond)<<28) | 0x0328f000 | ((ror2)<<8) | (imm)) // cpsr_f
|
||||
|
||||
#define EOP_C_MSR_REG(cond,rm) \
|
||||
EMIT(((cond)<<28) | 0x0128f000 | (rm)) // cpsr_f
|
||||
|
||||
#define EOP_MRS(rd) EOP_C_MRS(A_COND_AL,rd)
|
||||
#define EOP_MSR_IMM(ror2,imm) EOP_C_MSR_IMM(A_COND_AL,ror2,imm)
|
||||
#define EOP_MSR_REG(rm) EOP_C_MSR_REG(A_COND_AL,rm)
|
||||
|
||||
|
||||
static void emit_mov_const(int cond, int d, unsigned int val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue