From b7d9cff15bacb6da8938edf6dcc1bf061a1db6f0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 8 Nov 2022 14:28:24 -0500 Subject: Remove tmp1. --- mmss.s | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mmss.s') 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: -- cgit v1.2.3