blob: 2c80382bd8c2110efbcdb4b17ba2c64cab2e5d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# binary tests
this folder contains binary source (.bs) files, that can be converted to .bin
files using the provided makefile. these files can contain comments, and are
processed using `m4` and `xxd`.
example syntax:
```
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
```
if compilation hangs, you probably broke the syntax
|