update idledet code
authornotaz <notasas@gmail.com>
Thu, 15 Aug 2013 22:13:24 +0000 (01:13 +0300)
committernotaz <notasas@gmail.com>
Thu, 15 Aug 2013 22:13:24 +0000 (01:13 +0300)
tools/idle.s

index a8b7cca..279079b 100644 (file)
@@ -119,12 +119,9 @@ idle_beq:
 @ @@@ @
 
 idle_detector_bcc8:
-    ldr     r0, =(Pico+0x22208)   @ Pico.m
-    ldr     r1, =idledet_start_frame
-    ldr     r0, [r0, #0x1c]       @ ..frame_count
-    ldr     r1, [r1]
-    cmp     r0, r1
-    blt     exit_detector         @ not yet
+    bl      SekIsIdleReady
+    tst     r0, r0
+    beq     exit_detector         @ not yet
 
     mov     r0, r8, asl #24       @ Shift 8-bit signed offset up...
     add     r0, r4, r0, asr #24   @ jump dest