]> git.sur5r.net Git - cc65/commitdiff
Add comments.
authorPiotr Fusik <fox@scene.pl>
Thu, 8 Mar 2018 21:10:11 +0000 (22:10 +0100)
committerPiotr Fusik <fox@scene.pl>
Thu, 8 Mar 2018 21:10:11 +0000 (22:10 +0100)
libsrc/runtime/ldec.s

index ee7ed3fd4947c55ab57556c57e9657748ba8c7c9..e7e891119e3f6efe027562c6965f54649bd962c6 100644 (file)
@@ -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