summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-06-11 18:30:41 -0400
committerJordan Wiens <jordan@psifertex.com>2020-06-11 18:30:41 -0400
commit5fafe57bf83f292e98e721e8b9d018cd9a4919cf (patch)
tree8493ee972a75f43ebe9503daf8575c8141d84be3 /docs/dev
parentaded2f1fd9a4f7cb2370ac8c1dcaa70a0f1ba64f (diff)
switch size to bytes and add floating point examples
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/bnil-overview.md17
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/dev/bnil-overview.md b/docs/dev/bnil-overview.md
index acf3c241..290c18bf 100644
--- a/docs/dev/bnil-overview.md
+++ b/docs/dev/bnil-overview.md
@@ -32,10 +32,19 @@ Besides the typical `&&` bitwise operators, BNIL makes use of `sx` and `zx` to i
Expressions in BNIL can have one of the following suffixes to indicate a size:
```
-.q -- Qword (64 bits)
-.d -- Dword (32 bits)
-.w -- Word (16 bits)
-.b -- Byte (8 bits)
+.q -- Qword (8 bytes)
+.d -- Dword (4 bytes)
+.w -- Word (2 bytes)
+.b -- Byte (1 byte)
+```
+
+Note that floating point IL instructions have their own possible size suffixes:
+
+```
+.h -- Half (2 bytes)
+.s -- Single (4 bytes)
+.d -- Double (8 bytes)
+.t -- Ten (10 bytes)
```
### Variable Offsets