mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
bugfixes for Cyclone r9 change
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@418 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
449ecf9257
commit
8527dc450a
3 changed files with 10 additions and 15 deletions
|
@ -376,23 +376,20 @@ int OpMovem(int op)
|
|||
|
||||
OpStart(op,ea,0,1);
|
||||
|
||||
ot(" ldrh r11,[r4],#2 ;@ r11=register mask\n");
|
||||
ot("\n");
|
||||
ot(";@ Get the address into r6:\n");
|
||||
EaCalc(6,0x003f,cea,size);
|
||||
|
||||
#if !MEMHANDLERS_NEED_PREV_PC
|
||||
// must save PC, need a spare register
|
||||
ot(" str r4,[r7,#0x40] ;@ Save PC\n");
|
||||
#endif
|
||||
#if !MEMHANDLERS_NEED_CYCLES
|
||||
ot(" str r5,[r7,#0x5c] ;@ Save Cycles\n");
|
||||
#endif
|
||||
ot(" ldrh r11,[r4],#2 ;@ r11=register mask\n");
|
||||
|
||||
ot(";@ r4=Register Index*4:\n");
|
||||
if (decr) ot(" mov r4,#0x40 ;@ order reversed for -(An)\n");
|
||||
else ot(" mov r4,#-4\n");
|
||||
|
||||
ot("\n");
|
||||
ot(";@ Get the address into r6:\n");
|
||||
EaCalc(6,0x003f,cea,size);
|
||||
|
||||
ot("\n");
|
||||
ot(" tst r11,r11\n"); // sanity check
|
||||
ot(" beq NoRegs%.4x\n",op);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue