The object file is generated in the same directory
Usage: target/debug/sick_assembler FILE [options] file
Options:
-o, --output name set output file name
-c, --csect print control section details
-h, --help print this help menu
Extensive amount of error checking is done
- Undefined Mnemonics
- Undefined Directives
- Duplicate labels
- Control section redefinition
- Label redefinition
- Duplicate imports in a control section
- Duplicate exports of a variable
- Un-imported symbols
- Malformed instructions
- Invalid literals
- Out of bound addresses
- Invalid expressions
- Missing START instruction
- Missing Program name
- Illegal format addressing for imported symbol
- Out of bit range parameters
you can find test codes (.asm) files in ./src/tests/
directory. In addition to module & unit tests.