X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=cyclone68000.git;a=blobdiff_plain;f=tools%2Fidle.s;fp=tools%2Fidle.s;h=279079b53c1b01e4ef9d8fc9ad630b8a24e031f1;hp=a8b7ccaf94832ccd02d8bdf949e86be4d0dd74c3;hb=7ddcd35c8b2a8248257bd89ef989095639c29c08;hpb=1f9661c5a2919ba91c0f4b89985e0712871e5762 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