Skip to content

Commit

Permalink
Actually implement ldm {pc}^ (oops!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cydrak authored and Cydrak committed Aug 2, 2013
1 parent 5240c87 commit 353c407
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nds/cpu/arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,9 @@ void ARMCore::armBlock(uint5 opcode, uint4 irn, uint16 rlist) {
addr += 4;
}
if(user) swapBank(mode);
if(ld && (rlist & 1<<15)) branch(r[15] & 1, r[15]);

if(ld && (rlist & 1<<15)) {
if(opcode & 4) writeCpsr(spsr(), 0xf);
branch(r[15] & 1, r[15]);
}
}

0 comments on commit 353c407

Please sign in to comment.