From 7ddcd35c8b2a8248257bd89ef989095639c29c08 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 16 Aug 2013 01:13:24 +0300 Subject: [PATCH] update idledet code --- tools/idle.s | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/idle.s b/tools/idle.s index a8b7cca..279079b 100644 --- a/tools/idle.s +++ b/tools/idle.s @@ -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 -- 2.39.2