https://github.com/5j54d93/sic-assembler
An assembler for SIC(Simplified Instructional Computer)in Python.
https://github.com/5j54d93/sic-assembler
assembler python sic
Last synced: about 2 months ago
JSON representation
An assembler for SIC(Simplified Instructional Computer)in Python.
- Host: GitHub
- URL: https://github.com/5j54d93/sic-assembler
- Owner: 5j54d93
- License: mit
- Created: 2022-03-27T00:26:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T00:58:54.000Z (about 4 years ago)
- Last Synced: 2025-10-27T00:35:38.425Z (7 months ago)
- Topics: assembler, python, sic
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SIC Assembler
[](https://github.com/5j54d93/SIC-Assembler/actions/workflows/codeql-analysis.yml)




An assembler for SIC(Simplified Instructional Computer)in Python.
- `assembler.py`:main program
- `pass1.py`:Create SYMTAB(Symbol Table)
- `pass2.py`:Write object file
- `sic.py`:store SIC instruction set and directive
## How To Use
1. Download this repository via `git clone`
```shell
git clone https://github.com/5j54d93/SIC-Assembler
```
2. Change directories to this repository via `cd` or drag this folder and drop in terminal
```shell
cd SIC-Assembler
```
3. Run `assembler.py`
```shell
python3 assembler.py
```
## Example
run `python3 assembler.py addexample.asm` in terminal to convert `.asm` to `.obj`
### `addexample.asm`
```asm
ADDEX START 1000
FIRST LDA THREE
ADD FIVE
STA RESULT
RSUB
THREE WORD 3
FIVE WORD 5
RESULT RESW 1
END FIRST
```
### `addexample.obj`
```obj
HADDEX 001000000015
T0010001200100C18100F0C10124C0000000003000005
E001000
```
## License:MIT
This package is [MIT licensed](https://github.com/5j54d93/SIC-Assembler/blob/main/LICENSE).