Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Styles Consider the MARIE program on the right. a) List the hexadecimal code for each instruction. b) Draw the symbol table. Hex Add. I Label

image text in transcribed
Styles Consider the MARIE program on the right. a) List the hexadecimal code for each instruction. b) Draw the symbol table. Hex Add. I Label Instruction Loop 1001 101 1 102 ! 103 ! 104 1 1051 106 ! 107 1 108 | 1091 10A1 10B 1001 1001 10E 1071 1101 1111 1121 1131 114 1 1151 1161 117 LOAD Addr STORE Next LOAD Num SUBT One STORE Ctr CLEAR LOAD Sum ADDI Next STORE Sum LOAD Next ADD One STORE Next LOAD Ctr SUBT One STORE Ctr SKIPCOND 800 JUMP Loop HALT HEX 118 HEX 0 DEC 5 DEC 0 HEXO DEC 1 Hint: Opcode 0000 0001 0010 0011 0100 0101 0110 Instruction Opcode Jn 8 X 0111 Load x 1000 Store X 1001 Add x 1010 Subt X 1011 Input 1100 Output Instruction Halt Skpoond Jump X clear Addr X Jump X Addr Next Num Sum Ctr One

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions