DCPU 16 Assembler written in C
- All standard instructions according to specification 1.7
- Initialized data with
DAT
- Uninitialized data with
RES
- Local labels (starting with
.
) - Expressions for
DAT
values andRES
size, including$
for current byte - Special instruction
DBP a
(debug print) op0x00
b0x1F
- Special instruction
DBH
(debug halt)0x00
Usage: dcpu16-as [OPTION...] DASM_FILES...
-o, --output=FILE Output to FILE instead of out.bin
-v, --verbose Verbose output
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Dependencies:
- GCC (may work with other compilers)
- flex
- bison
- GNU make
Build with make
DAT comma, separated, expressions, and, "string literals"
RES expression
will reserve a number of bytes given by expression