aboutsummaryrefslogtreecommitdiff
path: root/mmss.s
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-08 14:28:24 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-08 14:28:24 -0500
commitb7d9cff15bacb6da8938edf6dcc1bf061a1db6f0 (patch)
tree06c9686f8ffbce23da24bc5c1d9b3d7d9b4989fa /mmss.s
parent26c6c2b601e849b98110f8cd09eac3192a8ee81b (diff)
downloaddla-asm-b7d9cff15bacb6da8938edf6dcc1bf061a1db6f0.tar.gz
Remove tmp1.
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: