Answered step by step
Verified Expert Solution
Question
...
1 Approved Answer
Please I need your support to provide me python code for SIC path one (Simplified Instructional Computer) This code that convert assembly language to machine
Please I need your support to provide me python code for SIC path one (Simplified Instructional Computer)
This code that convert assembly language to machine language
input file
symbols instructions, reference
Prog1 | Start | 0000 |
LDA | ZERO | |
STA | INDEX | |
LOOP | LDX | INDEX |
LDA | ZERO | |
STA | ALPHA, X | |
LDA | INDEX | |
ADD | THREE | |
STA | INDEX | |
COMP | K300 | |
TIX | TWENTY | |
JLT | LOOP | |
INDEX | RESW | 1 |
ALPHA | RESW | 100 |
ZERO | WORD | 0 |
K300 | WORD | 100 |
THREE | WORD | 3 |
TWENTY | WORD | 20 |
End | Prog1 |
hint
Expected output
HINT \begin{tabular}{|l|l|} \hline symbol & location \\ \hline LOOP & 0006 \\ \hline INDEX & 0021 \\ \hline ALPHA & 0024 \\ \hline ZERO & 0150 \\ \hline K300 & 0153 \\ \hline THREE & 0156 \\ \hline TWENTY & 0159 \\ \hline \end{tabular} HINT \begin{tabular}{|l|l|} \hline symbol & location \\ \hline LOOP & 0006 \\ \hline INDEX & 0021 \\ \hline ALPHA & 0024 \\ \hline ZERO & 0150 \\ \hline K300 & 0153 \\ \hline THREE & 0156 \\ \hline TWENTY & 0159 \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp)
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Step: 3
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started