From d6db0104294aa5f449dac69e1965f552d95440fa Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sun, 9 Jun 2019 17:46:06 +0200 Subject: Document high nybble of PrintNum `c` register --- engine/math/print_num.asm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine/math') diff --git a/engine/math/print_num.asm b/engine/math/print_num.asm index fce3c9027..62ef97fb3 100644 --- a/engine/math/print_num.asm +++ b/engine/math/print_num.asm @@ -2,6 +2,8 @@ _PrintNum:: ; Print c digits of the b-byte value from de to hl. ; Allows 2 to 7 digits. For 1-digit numbers, add ; the value to char "0" instead of calling PrintNum. +; The high nybble of the c register specifies how many of the total amount of +; digits will be in front of the decimal point. ; Some extra flags can be given in bits 5-7 of b. ; Bit 5: money if set (unless left-aligned without leading zeros) ; Bit 6: right-aligned if set -- cgit v1.2.3