aboutsummaryrefslogtreecommitdiff
path: root/src/jifsec.s
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-08 07:34:06 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-08 07:34:23 -0400
commitcd644a6d52fecb59c0daaa36325f740089d321ce (patch)
tree824cf9f70c287aa486d4aed60f8ac08f2a678643 /src/jifsec.s
parent4ae461b9332f5642df85b8c204d88601f6a1adef (diff)
downloadfujinet-chat-cd644a6d52fecb59c0daaa36325f740089d321ce.tar.gz
Fix stupidity in jifsec.s: I was already using FR0 for something else... 7359 bytes free with no crashes!
Diffstat (limited to 'src/jifsec.s')
-rw-r--r--src/jifsec.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jifsec.s b/src/jifsec.s
index ca5aac7..86648c1 100644
--- a/src/jifsec.s
+++ b/src/jifsec.s
@@ -1,13 +1,13 @@
; print jiffies as seconds, with possible decimal point, to the
; active screen.
; unsigned divide based on Ullrich von Bassewitz's runtime/udiv.s.
-; uses FR0 as a temp, rather than any of cc65's ZP storage,
+; uses FR1 as a temp, rather than any of cc65's ZP storage,
; to avoid clobbering.
- FR0 = $d4
- acc16 = FR0 ; 16 bits
- remainder = FR0+2 ; 8 bits
- temp = FR0+3 ; 16 bits
+ FR1 = $e0
+ acc16 = FR1 ; 16 bits
+ remainder = FR1+2 ; 8 bits
+ temp = FR1+3 ; 16 bits
_hz = $f0 ; must agree with timers.h!