Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE HELP WITH YOUR EXPLAINATION BECAUSE I DON\'T KNOW THIS! THANKS Pago 1. Pr

ID: 3740893 • Letter: P

Question

PLEASE HELP WITH YOUR EXPLAINATION BECAUSE I DON'T KNOW THIS! THANKS

Pago 1. Problems 1. (15 points) Consider the MARIE program below a) b) c) List the hexadecimal code for each instruction Draw the symbol table What is the value stored in the AC when the program terminates? Label Hex Address 200 201 202 203 204 205 206 207 208 209 20A 20B 20C Instruction LOAD Base ADD Offs SUBT One STORE Addr SKIPCOND 800 JUMP Done JUMPI Addr CLEAR HALT HEX 200 Dec 9 HEX 001 HEX 000 Begin, Loop Done Base Offs, One Addr

Explanation / Answer

a) Answer:- Following are the Hexadecimal code for each instructions:-

Explanation:The fundamental MARIE instructions are as follows:

b)Answer:-Symbol Table

c) Answer:

AC=208 terminate the program

Explanation:-Halt instruction is used for to terminate the program its address is 208 in the above program.

Hex Address Instruction Hex Contents of memory 200 Begin LOAD Base 1209 201 ADD Offs 320A 202 Loop SUBT One 420B 203 STORE Addr 220C 204 SKIPCOND 800 8800 205 JUMP Done 9208 206 JUMPI Addr C20C 207 CLEAR A000 208 Done HALT 7000 209 Base HEX 200 0200 20A Offs DEC 9 0009 20B One HEX 0001 0001 20C Addr HEX 0000 0000
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote