From 970c5f6184ca48a6db7118063ce284855cc63787 Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Thu, 8 Mar 2018 22:10:11 +0100 Subject: [PATCH] Add comments. --- libsrc/runtime/ldec.s | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5