aboutsummaryrefslogtreecommitdiff
path: root/test/bin/example.bs
diff options
context:
space:
mode:
Diffstat (limited to 'test/bin/example.bs')
-rw-r--r--test/bin/example.bs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bin/example.bs b/test/bin/example.bs
new file mode 100644
index 0000000..ce5f292
--- /dev/null
+++ b/test/bin/example.bs
@@ -0,0 +1,9 @@
+00 00 00 00 ; this is an example binary source file
+repeat(5,8f) ; 5 0x8f bytes
+repeat(hex(a),bb) ; 10 0xbb bytes
+repeat(0x40,00) ; 64 0x00 bytes
+; ^ 0x prefix works too
+ff ; single byte
+00000000 ; 32-bit number
+; ^ this is the comment character
+