summaryrefslogtreecommitdiff
path: root/05/main.b
diff options
context:
space:
mode:
Diffstat (limited to '05/main.b')
-rw-r--r--05/main.b5
1 files changed, 4 insertions, 1 deletions
diff --git a/05/main.b b/05/main.b
index f21438f..b500150 100644
--- a/05/main.b
+++ b/05/main.b
@@ -88,7 +88,6 @@ function main
local tokens
fill_in_powers_of_10()
- print_powers_of_10()
dat_banned_objmacros = 255
dat_banned_fmacros = 255
@@ -142,6 +141,10 @@ function main
string a.out
byte 0
+; NOTE: this language doesn't have proper support for floating-point numbers,
+; but we need to do some float stuff. floats are stored as a 58-bit significand
+; and an exponent. the significand ranges from 0 (inclusive) to 0x400000000000000 (exclusive)
+
function normalize_float
argument p_significand
argument p_exponent