snd fix
authornotaz <notasas@gmail.com>
Sun, 29 Apr 2007 19:00:42 +0000 (19:00 +0000)
committernotaz <notasas@gmail.com>
Sun, 29 Apr 2007 19:00:42 +0000 (19:00 +0000)
git-svn-id: file:///home/notaz/opt/svn/fceu@115 be3aeb3a-fb24-0410-a615-afba39da0efa

ncpu.S

diff --git a/ncpu.S b/ncpu.S
index d8eb3bf..fcf8fed 100644 (file)
--- a/ncpu.S
+++ b/ncpu.S
@@ -3002,7 +3002,11 @@ TriggerNMINSF_a:
 
 
 X6502_AddCycles_a:
+       ldr     r3, =timestamp
        ldr     r2, =nes_registers
+       ldr     r1, [r3]
+       add     r1, r1, r0
+       str     r1, [r3]
        ldrsh   r1, [r2, #0x1e]
        mvn     r3, #47                 @ r3=-48
        mla     r0, r3, r0, r1