summaryrefslogtreecommitdiff
path: root/docs/dev/bnil-overview.md
diff options
context:
space:
mode:
authorJordan Wiens <github@psifertex.com>2026-05-27 14:55:28 -0400
committerJordan Wiens <github@psifertex.com>2026-05-27 14:55:28 -0400
commit162b406ea28aa5bacc34a00745d8780bcbf58753 (patch)
tree39802866489bd352c54599024e24ee346b44cd35 /docs/dev/bnil-overview.md
parentf2ae12d97604da6136b26c184eb7fe30531b4d5e (diff)
add better syntax highlighting for code blocks
Diffstat (limited to 'docs/dev/bnil-overview.md')
-rw-r--r--docs/dev/bnil-overview.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/dev/bnil-overview.md b/docs/dev/bnil-overview.md
index df0447ea..a43c4a27 100644
--- a/docs/dev/bnil-overview.md
+++ b/docs/dev/bnil-overview.md
@@ -44,7 +44,7 @@ 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:
-```
+```text
.q -- Qword (8 bytes)
.d -- Dword (4 bytes)
.w -- Word (2 bytes)
@@ -53,7 +53,7 @@ Expressions in BNIL can have one of the following suffixes to indicate a size:
Note that floating point IL instructions have their own possible size suffixes:
-```
+```text
.h -- Half (2 bytes)
.s -- Single (4 bytes)
.d -- Double (8 bytes)
@@ -63,7 +63,7 @@ Note that floating point IL instructions have their own possible size suffixes:
Additionally, floating point IL operations are indicated with a prefixed `f`, like:
-```
+```text
f* -- Floating-point multiplication
f/ -- Floating-point division
f+ -- Floating-point addition
@@ -89,7 +89,7 @@ A number of macros are used to simplify output when rendering IL where no standa
So putting all that together, if you were to see the following in an IL expression:
-```
+```text
sx.q(rax_2:0.d)
```
@@ -103,7 +103,7 @@ When you want to use the API to access BNIL instructions, here are a few tips th
So for example, if you want to try to determine whether a given instruction is a Call (which includes syscalls) you can use:
-```
+```python
for h in current_hlil.instructions:
if isinstance(h, Call):
print(f"{str(h)} is a Call of some sort")