From 5fafe57bf83f292e98e721e8b9d018cd9a4919cf Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 11 Jun 2020 18:30:41 -0400 Subject: switch size to bytes and add floating point examples --- docs/dev/bnil-overview.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'docs/dev') 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 -- cgit v1.3.1