aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jifsec.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jifsec.s b/src/jifsec.s
index 86648c1..4f3d3c8 100644
--- a/src/jifsec.s
+++ b/src/jifsec.s
@@ -3,6 +3,9 @@
; unsigned divide based on Ullrich von Bassewitz's runtime/udiv.s.
; uses FR1 as a temp, rather than any of cc65's ZP storage,
; to avoid clobbering.
+; Note: this isn't that much smaller than the C version was, but it
+; *does* fix a bug: leading zeroes weren't being printed for fractions
+; less than 0.1 sec (e.g. 0.04 came out as 0.4).
FR1 = $e0
acc16 = FR1 ; 16 bits