An implementation of a simple yet fast two-pass assembler in C with tries for fast in-memory opcode fetch.
- Parsing assembler scripts
- Generation of intermediate file
- Generation of object file
- Generation of symbol tables
- Loader creating exe files
Write the source assembly in a source file such as file.pasm
and then run the following command:
$make test
The above command takes care of assembling the source code, linking and executing the binary.
- The opcodes.csv file contains the supported opcodes, more opcodes has to be supported and some have yet undefined lenghts.
- There is no support for macros
- There is no support for some assembler directives such as
EXTERN
,ORG
andLTORG
. - There is yet no support for multiple control sections.