From 8227a82f78bb27bbcbe5a241ec5b51de799b12bc Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 8 Apr 2026 08:09:04 -0400 Subject: Comment a bugfix that I didn't even notice... --- src/jifsec.s | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3