An assembler for SIC(Simplified Instructional Computer)in Python.
assembler.py
:main programpass1.py
:Create SYMTAB(Symbol Table)pass2.py
:Write object filesic.py
:store SIC instruction set and directive
- Download this repository via
git clone
git clone https://github.com/5j54d93/SIC-Assembler
- Change directories to this repository via
cd
or drag this folder and drop in terminal
cd SIC-Assembler
- Run
assembler.py
python3 assembler.py <source file>
run python3 assembler.py addexample.asm
in terminal to convert .asm
to .obj
ADDEX START 1000
FIRST LDA THREE
ADD FIVE
STA RESULT
RSUB
THREE WORD 3
FIVE WORD 5
RESULT RESW 1
END FIRST
HADDEX 001000000015
T0010001200100C18100F0C10124C0000000003000005
E001000
This package is MIT licensed.