aboutsummaryrefslogtreecommitdiff
path: root/mmss.s
diff options
context:
space:
mode:
Diffstat (limited to 'mmss.s')
-rw-r--r--mmss.s11
1 files changed, 6 insertions, 5 deletions
diff --git a/mmss.s b/mmss.s
index de60485..f56ec8d 100644
--- a/mmss.s
+++ b/mmss.s
@@ -9,8 +9,8 @@
;;; Uses the floating point ROM routines, because it's easier to code
;;; this way (or so I thought!), and we don't need speed here.
;;;
-;;; Caller must define cloksav (3 bytes), fptmp (6 bytes), and tmp1
-;;; (1 byte). These don't absolutely have to be in zero page, but
+;;; Caller must define cloksav (3 bytes) and fptmp (6 bytes).
+;;; These don't absolutely have to be in zero page, but
;;; it's nice if they are.
;;;
print_mmss:
@@ -73,16 +73,17 @@ truncdone:
; print digits in FR0
; don't use FASC, easier to do it this way.
+ ; here we use the first byte of FR1 as a temp.
lda FR0
and #$03
- sta tmp1
- inc tmp1
+ sta FR1
+ inc FR1
ldx #0
floop:
lda FR0+1,x
jsr printhex
inx
- cpx tmp1
+ cpx FR1
bcc floop
floopdone: