lj-ditrapani / original-design-16-bit-computer-assembler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembler for ljd 16-bit CPU

This is the old design. See https://github.com/lj-ditrapani/16-bit-computer-specification for new design & direction.

The specification of the assembly language is in doc/assembly-language.md.

The assembler prints the assembled machine code to standard out. Redirect standard out to write to a file.

Usage: bin/assembler path/to/file.asm > path/to/file.exe

It is a two pass assembler. On the first pass, the assembler generates a list of 'Commands' and fills in the symbol table. On the second pass, the assembler uses the list of Commands and the completed symbol table to generate the actual machine code.

The machine code can be executed on the ljd 16-bit Computer.

About


Languages

Language:Ruby 81.8%Language:Assembly 17.9%Language:Shell 0.3%