Justin Fletcher's DCPU-16 assembler =================================== Introduction ------------ 'dasm.pl' is a DCPU-16 assembler and disassembler kit. The DCPU-16 instruction set v1.1 is implemented, with a few extensions. This is not a macro assembler, yet. The assembler supports the syntax given as examples as part of the specification. Usage ----- To assemble a file, use: ./dasm.pl .dasm .dump The dump format produced is a linked textual dump, in the same format as that given in the DCPU-16 specification. To disassemble a file, use: ./dasm.pl .dump .dasm The output disassembly file should be able to be reassembled. The internal structures used by the file can be displayed: ./dasm.pl .dasm Source assembly file format --------------------------- The source assembly format is given as an example in the DCPU-16 specification. Operands (called 'values' in the specification) take the form specified in the specification, with the exception that the [SP] type specification is not supported (PUSH, PEEK and POP are far clearer). The following format is expected: ; - comment lines, which will be ignored. Comments may also be appended to all lines . - directives to the assembler, outside of the specification of the CPU. See below. :