mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
NOT setting upper bits on PUSH PC, minor adjustments
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@189 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c6a4c89286
commit
547045e3c6
4 changed files with 15 additions and 16 deletions
|
@ -243,10 +243,10 @@ int OpJsr(int op)
|
|||
else
|
||||
{
|
||||
ot(";@ Jsr - Push old PC first\n");
|
||||
ot(" sub r1,r4,r10 ;@ r1 = Old PC\n");
|
||||
ot(" mov r1,r1,lsl #8\n");
|
||||
ot(" ldr r0,[r7,#0x3c]\n");
|
||||
ot(" mov r1,r1,asr #8\n");
|
||||
ot(" sub r1,r4,r10 ;@ r1 = Old PC\n");
|
||||
// ot(" mov r1,r1,lsl #8\n");
|
||||
// ot(" mov r1,r1,asr #8\n");
|
||||
ot(";@ Push r1 onto stack\n");
|
||||
ot(" sub r0,r0,#4 ;@ Predecrement A7\n");
|
||||
ot(" str r0,[r7,#0x3c] ;@ Save A7\n");
|
||||
|
@ -438,11 +438,11 @@ int OpBranch(int op)
|
|||
if (cc==1)
|
||||
{
|
||||
ot(";@ Bsr - remember old PC\n");
|
||||
ot(" ldr r2,[r7,#0x3c]\n");
|
||||
ot(" sub r1,r4,r10 ;@ r1 = Old PC\n");
|
||||
if (size) ot(" add r1,r1,#%d\n",1<<size);
|
||||
ot(" mov r1,r1, lsl #8\n");
|
||||
ot(" ldr r2,[r7,#0x3c]\n");
|
||||
ot(" mov r1,r1, asr #8\n");
|
||||
// ot(" mov r1,r1, lsl #8\n");
|
||||
// ot(" mov r1,r1, asr #8\n");
|
||||
ot("\n");
|
||||
ot(";@ Push r1 onto stack\n");
|
||||
ot(" sub r0,r2,#4 ;@ Predecrement A7\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue