aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dla.s20
-rw-r--r--mmss.s11
2 files changed, 15 insertions, 16 deletions
diff --git a/dla.s b/dla.s
index 4bc8559..12724d7 100644
--- a/dla.s
+++ b/dla.s
@@ -30,12 +30,12 @@
maxparticles: .res 2 ; user's response to "How many particles?"
seedtype: .res 1 ; user's response to seed type prompt (minus one; 0-3)
-pixptr: .res 2 ; used by plotsetup and friends
-pixmask: .res 1 ; ditto.
-cursor_x: .res 1 ; cursor x/y are args to plot/unplot/locate
+pixptr: .res 2 ; used by plot and drunkwalk
+pixmask: .res 1 ; used by render
+cursor_x: .res 1 ; cursor x/y are args to plot and drunkwalk
cursor_y: .res 1
pixptr2: .res 2 ; used by drunkwalk
-screenptr = pixptr2
+screenptr = pixptr2 ; used by render
circlesize: .res 1 ; 0 to 3
@@ -43,14 +43,12 @@ particles: .res 2
spawn_x: .res 2
spawn_y: .res 2
-cloksav: .res 3 ; hold RTCLOK here while we convert to MM:SS.CC
-
-old_dma: .res 1 ; these 3 are for restoring GR.0 mode
-old_dl: .res 2
-old_savmsc: .res 2
+old_dma: .res 1 ; these 3 are for restoring GR.0 mode
+old_dl: .res 2
+old_savmsc: .res 2
-tmp1: .res 1 ; used in mmss.s
-fptmp: .res 6 ; " " "
+cloksav: .res 3 ; hold RTCLOK here while we convert to MM:SS.CC
+fptmp: .res 6 ; used in mmss.s
.code
xex_org loadaddr
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: