diff options
author | B. Watson <urchlay@slackware.uk> | 2022-11-08 14:28:24 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2022-11-08 14:28:24 -0500 |
commit | b7d9cff15bacb6da8938edf6dcc1bf061a1db6f0 (patch) | |
tree | 06c9686f8ffbce23da24bc5c1d9b3d7d9b4989fa /mmss.s | |
parent | 26c6c2b601e849b98110f8cd09eac3192a8ee81b (diff) | |
download | dla-asm-b7d9cff15bacb6da8938edf6dcc1bf061a1db6f0.tar.gz |
Remove tmp1.
Diffstat (limited to 'mmss.s')
-rw-r--r-- | mmss.s | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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: |