Please I really need help with those questions and a little explanation to the a
ID: 3664051 • Letter: P
Question
Please I really need help with those questions and a little explanation to the answer will help too.
1) Write the following MARIE assembly language equivalent of the following machine language instructions
a)0010 0000 0111 0000
b)1001 0000 0000 1011
c)0011 0000 0000 1001
d)1000 0000 0000 0000
2) List the hexadecimal code for the following program
Hex Address Label Instruction Hexadecimal Code
100 Num, Load Addr
101 Store Test
102 Skipcond 800
103 Jump Num
104 Subj One
105 Store Ctr
106 Halt
107 Addr, Hex 130
108 Test, Hex 0
109 One, Hex 1
10A Hex Hex 0
Explanation / Answer
using these we can traslate Marie into machine language
101 SKIPCOND800 8800
102 JUMP EXIT 9106
103 ADD X 3107
104 STORE X 2107
105 JUMP REPEAT 9100
106 EXIT HALT 7000
107 X, DEC 0 0000
a)0010 0000 0111 0000
answer) store 070
b)1001 0000 0000 1011
answer) Jump 00B
c)0011 0000 0000 1001
answer. Add 009
d)1000 0000 0000 0000
answer) skip 000