X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libsrc%2Fruntime%2Fasreax4.s;h=62f9808d792930565aad44844bdb005a81480de3;hb=86fe20fb1459438a88ef97e35672798717f18119;hp=577d9ae1276fbf5d722de7b9c4d0818040fe25cc;hpb=d55c271c2a09df8844edc57a84a95f823b1a74ea;p=cc65 diff --git a/libsrc/runtime/asreax4.s b/libsrc/runtime/asreax4.s index 577d9ae12..62f9808d7 100644 --- a/libsrc/runtime/asreax4.s +++ b/libsrc/runtime/asreax4.s @@ -4,20 +4,20 @@ ; CC65 runtime: Scale the 32 bit primary register by 16 ; - .export asreax4 - .importzp sreg, tmp1 + .export asreax4 + .importzp sreg, tmp1 asreax4: - stx tmp1 - ldx sreg+1 - ldy #4 -@L1: cpx #$80 ; Get bit 7 into carry - ror sreg+1 - ror sreg - ror tmp1 - ror a - dey - bne @L1 - ldx tmp1 - rts + stx tmp1 + ldx sreg+1 + ldy #4 +@L1: cpx #$80 ; Get bit 7 into carry + ror sreg+1 + ror sreg + ror tmp1 + ror a + dey + bne @L1 + ldx tmp1 + rts