summaryrefslogtreecommitdiff
path: root/engine/math
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2019-06-17 07:29:30 -0400
committerGitHub <noreply@github.com>2019-06-17 07:29:30 -0400
commitf1bab45624a3a2d5f6bf5b63e912382de0a30abd (patch)
treea119b4a04697bba53c0f9617283ed9a467fc6236 /engine/math
parentfbc2c55cdb2f18a933af3daf9294750f254c23a5 (diff)
parent7e84f7240328af68723f8419d5079daea32cf21d (diff)
Merge pull request #638 from mid-kid/master
beep boop
Diffstat (limited to 'engine/math')
-rw-r--r--engine/math/print_num.asm2
1 files changed, 2 insertions, 0 deletions
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