From: Piotr Fusik Date: Thu, 8 Mar 2018 21:10:11 +0000 (+0100) Subject: Add comments. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=970c5f6184ca48a6db7118063ce284855cc63787;p=cc65 Add comments. --- diff --git a/libsrc/runtime/ldec.s b/libsrc/runtime/ldec.s index ee7ed3fd4..e7e891119 100644 --- a/libsrc/runtime/ldec.s +++ b/libsrc/runtime/ldec.s @@ -13,12 +13,15 @@ deceaxy: sec sbc tmp1 bcs @L9 +; borrow from X dex cpx #$ff bne @L9 +; X wrapped from zero to $ff, borrow from sreg dec sreg cpx sreg bne @L9 +; sreg wrapped from zero to $ff, borrow from sreg+1 dec sreg+1 @L9: rts