- SIC Machine's extended Edition
- you can read article at SIC/XE on wikipedia
- Control Section
- Addressing Mode (Flag bit)
- Direct Addressing Mode
- Indirect Addressing Mode
- Simple Addressing Mode
- Immediate Addressing Mode
- Relative Addressing Mode
-
- Program Counter (PC Register)
-
- Base (Base Register)
-
- Extended Instruction (4 bit Instruction)
Using two passes ...
- Pass one
- Assign addresses to all statements in source code
- Save values (addresses) assigned to labels for use in pass two
- Process directives
- Pass two
- Translate instructions
- Convert labels to addresses
- Generate values defined by BYTE and WORD
- Process the directives not done in pass one
- Write object code to output file
GCC compiler
gcc SicXEpass1.c -o SicXEpass1.exe
gcc SicXEpass2.c -o SicXEpass2.exe
GCC compiler
gcc SicXEpass1.c -o SicXEpass1.o
gcc SicXEpass2.c -o SicXEpass2.o
CMD
SicXEpass1.exe
SicXEpass2.exe
Powershell
&'.\SicXEpass1.exe'
&'.\SicXEpass2.exe'
./SicXEpass1.o
./SicXEpass2.o