Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yehiashaarawy/modified-sic-assembler
A modi-SIC disassembler is a program that translates machine code (HTE record) into an assembly code for the Modified Simplified Instructional Computer (modi-SIC).
https://github.com/yehiashaarawy/modified-sic-assembler
java mid-sic-disassembler modi-sic sic sic-xe
Last synced: 7 days ago
JSON representation
A modi-SIC disassembler is a program that translates machine code (HTE record) into an assembly code for the Modified Simplified Instructional Computer (modi-SIC).
- Host: GitHub
- URL: https://github.com/yehiashaarawy/modified-sic-assembler
- Owner: YehiaShaarawy
- Created: 2023-11-18T01:55:16.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-16T17:21:08.000Z (about 1 year ago)
- Last Synced: 2024-11-15T23:23:38.590Z (about 1 month ago)
- Topics: java, mid-sic-disassembler, modi-sic, sic, sic-xe
- Language: Java
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Modi-SIC Disassembler
It is a program that translates machine code (HTE record) into an assembly code for the Modified Simplified Instructional Computer (modi-SIC).
# Instruction Set
# Instruction Format
## Format 1
|OPCODE (8 Bits)|
|---|## Format 3
All Type 3 instruction could be immediate instructions this is done by a new division of bits of instructions of Type 3 (Format 3) as shown in following table.|OPCODE (7 Bits)|Immediate Flag [i] (1 Bit)|Indexing Flag [x] (1 Bit)|Address (15 Bits)|
|---|---|---|---|The modification applied on the opcode as
- Only opcode is represented as 7 bits (not 8) as in SIC
- The 8th bit of the opcode represents the immediate flag (i) which has two value
a. 0 if the instruction without immediate value (has an address)
b. 1 if the instruction with immediate value# Implementation
### Input
It takes as an input a text file (in.txt) that contains modi-SIC machine code (modi-SIC HTE record).
Remember that The modi-SIC HTE record will be modified to accept also object code of Format 1 instruction of SIC/XE.### Output
A generated symbol table file (symbolTable.txt) for all the symbols extracted from the HTE record.
A generated assembly code file (assembly.txt) which contain three columns ordered from left as location counter, the assembly code, and object code.