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=e55b5f131874e1706b7dec7e92bd1098c0f85c24;hp=e970d2e39059f3d7c0316df24081c3aea88b5a91;hb=cfe17eee41a12da11f69660c2764813e94d871ea;hpb=c6237d9e43c8a8854155757b80b77161a9570535 diff --git a/tools/idle.s b/tools/idle.s index e970d2e..e55b5f1 100644 --- a/tools/idle.s +++ b/tools/idle.s @@ -104,15 +104,15 @@ idle_bra: b Op6002 idle_bne: - msr cpsr_flg, r10 - movne r5, #2 @ 2 is intentional due to strange timing issues - inc_counter ne + tst r10, #0x40000000 @ Z set? + moveq r5, #2 @ 2 is intentional due to strange timing issues + inc_counter eq b Op6602 idle_beq: - msr cpsr_flg, r10 ;@ ARM flags = 68000 flags - moveq r5, #2 - inc_counter eq + tst r10, #0x40000000 @ Z set? + movne r5, #2 + inc_counter ne b Op6702