minor spc changes
authorJavier S. Pedro <maemo@javispedro.com>
Tue, 17 Nov 2009 22:25:15 +0000 (23:25 +0100)
committerJavier S. Pedro <maemo@javispedro.com>
Tue, 17 Nov 2009 22:25:15 +0000 (23:25 +0100)
debian/changelog
spc700a.s

index 420e4f3..58bb779 100644 (file)
@@ -1,3 +1,10 @@
+drnoksnes (1.2.5) unstable; urgency=low
+
+  * Can also build without Maemo deps now.
+  * Fixing a hangup on certain games.
+
+ -- Javier S. Pedro <maemo@javispedro.com>  Tue, 20 Oct 2009 00:13:03 +0200
+
 drnoksnes (1.2.4) unstable; urgency=low
 
   * Fixing some problems with onscreen controls.
index 7aafc3d..b0ba892 100644 (file)
--- a/spc700a.s
+++ b/spc700a.s
@@ -56,7 +56,7 @@ spc700_execute: @ int cycles
   mov   cycles,r0                   @ Cycles
   add   r0,context,#iapu_allregs_load
   ldmia r0,{opcodes,spc_pc,spc_ya,spc_p,spc_x,spc_ram}
-  mov   spc_s,spc_x,lsr #8
+  uxtb  spc_s,spc_x,ror #8
   and   spc_x,spc_x,#0xff
 
   ldrb  opcode,[spc_pc],#1          @ Fetch first opcode
@@ -89,6 +89,7 @@ Apu01:
   mov   r0,r0,lsr #8
   strb  r0,[r1,#0x100]
   sub   spc_s,spc_s,#2
+  uxtb spc_s, spc_s
   ldr   r0,[context,#iapu_extraram]
   ldrh  r0,[r0,#0x1e]
   add   spc_pc,spc_ram,r0