Mercurial > hg > index.cgi
diff src/defs.s @ 77:ba559f231929
Initial modification for number parser that handles floats and ints
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 10 Aug 2023 00:24:52 -0600 |
parents | 2d52cd154ed1 |
children | bb50ac9fdf37 |
line wrap: on
line diff
--- a/src/defs.s Sun Aug 06 00:51:22 2023 -0600 +++ b/src/defs.s Thu Aug 10 00:24:52 2023 -0600 @@ -46,6 +46,11 @@ valtype_float equ 2 ; float type (40 bit) value valtype_string equ 3 ; string type (16 bit length, 16(32) bit data pointer ; Value accumulator structure definitions +; +; Notes: +; +; Much code using value accumulators depends on the specific layout of this structure so reorganizing it is dangerous. +; Notably, the integer value and floating point mantissa must be at the same offset. val.type equ 6 ; value type offset val.fpexp equ 0 ; fp exponent offset val.fpmant equ 1 ; fp mantissa offset