From: notaz Date: Thu, 15 Aug 2013 22:13:24 +0000 (+0300) Subject: update idledet code X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=cyclone68000.git;a=commitdiff_plain;h=7ddcd35c8b2a8248257bd89ef989095639c29c08 update idledet code --- 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