# HG changeset patch # User William Astle # Date 1686421470 21600 # Node ID 8ac1aafb9ecb9fa9d2d2844d70818db262fdcbfd # Parent 9c2e66ef5fa1cd7e5c000f6ff033a10d9cced6d1 Fix some formatting glitches diff -r 9c2e66ef5fa1 -r 8ac1aafb9ecb src/lwbasic.s --- a/src/lwbasic.s Sun Apr 23 10:16:31 2023 -0600 +++ b/src/lwbasic.s Sat Jun 10 12:24:30 2023 -0600 @@ -1562,13 +1562,13 @@ lda #0x20 ; default sign (positive) ldb val0.int ; is it negative? bpl cmd_printint0 ; brif not - ldd zero ; - subd val0.int+2 - std val0.int+2 - ldd zero - sbcb val0.int+1 - sbca val0.int - std val0.int + ldd zero ; + subd val0.int+2 + std val0.int+2 + ldd zero + sbcb val0.int+1 + sbca val0.int + std val0.int lda #'- ; negative sign cmd_printint0 sta ,y+ ; save sign ldu #cmd_printintpc ; point to positive constant table @@ -1585,13 +1585,13 @@ sbca ,u std val0.int bcc cmd_printint2 ; brif we didn't go negative - ldd val0.int+2 ; undo last subtract - addd 2,u - std val0.int+2 - ldd val0.int - adcb 1,u - adca ,u - std val0.int + ldd val0.int+2 ; undo last subtract + addd 2,u + std val0.int+2 + ldd val0.int + adcb 1,u + adca ,u + std val0.int leay 1,y ; move to next digit in buffer leau 4,u ; move to next constant leax -1,x ; done all constants?