Consider the following program in MA dE assembly language. a) Complete the table detailing the RTN for next 2 instructions only that will be executed including the content of registers PC, IR, MAR, MBR and AC in hexadecimal. Note the first instruction LOAD X is already filled. Note also that SKIPCOND instruction has no operands, therefore you can complete Fetch, decode and execute cycles only. b) Explain in one statement the task performed by this program? / AC = X if AC > 0 then PC = PC + 1 (skip) LOAD X Repeat, SKIPCOND 800 / Go to End / AC JUMP End SUBT One AC

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter4: Processor Technology And Architecture
Section: Chapter Questions
Problem 2PE: If a microprocessor has a cycle time of 0.5 nanoseconds, what’s the processor clock rate? If the...
icon
Related questions
Question
1. Consider the following program in MARIE assembly language. a) Complete the table detailing
the RTN for next 2 instructions only that will be executed including the content of registers PC,
IR, MAR, MBR and AC in hexadecimal. Note the first instruction LOAD X is already filled. Note
also that SKIPCOND instruction has no operands, therefore you can complete Fetch, decode and
execute cycles only. b) Explain in one statement the task performed by this program?
LOAD X
/ AC = X
if AC > 0 then PC = PC + 1 (skip)
/ Go to End
Repeat, SKIPCOND 800
JUMP End
SUBT One
/ AC = AC - 1
STORE X
= AC
JUMP Repeat
Go to Repeat
STORE X
End, HALT
/ Stop (end of program)
х,
DEC 10
One,
DEC 1
label
opcode
LOAD
operand
hex
0000
OUTPUT
AC
000
1007
001
Repeat
SKIPCOND 80e
880e
002
2
JUMP
End
9a06
IR
0000
003
SUBT
One
4008
O 004
JUMP
Repeat
9001
MAR
000
005
STORE
2007
O 006
End
HALT
7000
MBR 0000
007
DEC
10
O 008
Оne
DEC
0001
PC
000
INP
Control
+0 +1 +2 +3
000 1007 BBee 9006 4008 9881 2007 7000 a00A 88a1 eeee eee e000 eeea eeee eeee e000
010 eeea eeee o00e a000 eeaa eeee e00 aa00 8aaa peee oee ea00 eeea eeee oe0e eeee
+4
+5 -6
+7
+8 +9
+A
+C
+D
+E
+F
020 eeee eeee eeee a000 eeaa eeee e000
a000 eaaa eeee ee00
e000 eeaa eeee eeee eeee
030 eeee eeee o00e e000 eeaa
eeee 0000 a000 88a eeee o000 e000 eee0 eeee 00 0000
eeaa eeee eeee aeee
ee00 eeee eeee ae00
0000 e000 eaaa eeee eeee ee00 eeea eeee 00ee e00e
040 e0ee eeee eeee ae0e eeaa
eeee e00e aa0e eaaa eeee eeee ee00
050 eeee eeee oeee a000 eeaa
eeee 0000 a000 8888 eeee oeee 0000
060 eeee eeee eeee eee eeee eeee
070 eeee eeee eeee a000 eeea eeee e00e e000 eaaa eeee ee00 e000 eee0 eeee e0ee e0ee
080 ee0e eeee 000e 0000 eeaa eeee e00e ag00 e8aa eeee ee00 e000 ee00 eeee o000 0000
Instruction
Step
RTN
PC
IR
MAR
MBR
AC
MAR O PC
000 | 0000
000
0000
0000
Fetch
IR O M[MAR]
000 1007
000
0000
0000
РС О РC + 1
001 | 1007
000
0000
0000
Decode OPCODE
IR[15-12]=0001
001 | 1007
000
0000
0000
Load X
Decode
=> Load
MAR O IRL11-0]
001 | 1007
007
0000
0000
Get
MBR O M[MAR]
001
1007
007
000A
0000
operand
execute
АС О МAR
001
1007
007
000A
000A
Transcribed Image Text:1. Consider the following program in MARIE assembly language. a) Complete the table detailing the RTN for next 2 instructions only that will be executed including the content of registers PC, IR, MAR, MBR and AC in hexadecimal. Note the first instruction LOAD X is already filled. Note also that SKIPCOND instruction has no operands, therefore you can complete Fetch, decode and execute cycles only. b) Explain in one statement the task performed by this program? LOAD X / AC = X if AC > 0 then PC = PC + 1 (skip) / Go to End Repeat, SKIPCOND 800 JUMP End SUBT One / AC = AC - 1 STORE X = AC JUMP Repeat Go to Repeat STORE X End, HALT / Stop (end of program) х, DEC 10 One, DEC 1 label opcode LOAD operand hex 0000 OUTPUT AC 000 1007 001 Repeat SKIPCOND 80e 880e 002 2 JUMP End 9a06 IR 0000 003 SUBT One 4008 O 004 JUMP Repeat 9001 MAR 000 005 STORE 2007 O 006 End HALT 7000 MBR 0000 007 DEC 10 O 008 Оne DEC 0001 PC 000 INP Control +0 +1 +2 +3 000 1007 BBee 9006 4008 9881 2007 7000 a00A 88a1 eeee eee e000 eeea eeee eeee e000 010 eeea eeee o00e a000 eeaa eeee e00 aa00 8aaa peee oee ea00 eeea eeee oe0e eeee +4 +5 -6 +7 +8 +9 +A +C +D +E +F 020 eeee eeee eeee a000 eeaa eeee e000 a000 eaaa eeee ee00 e000 eeaa eeee eeee eeee 030 eeee eeee o00e e000 eeaa eeee 0000 a000 88a eeee o000 e000 eee0 eeee 00 0000 eeaa eeee eeee aeee ee00 eeee eeee ae00 0000 e000 eaaa eeee eeee ee00 eeea eeee 00ee e00e 040 e0ee eeee eeee ae0e eeaa eeee e00e aa0e eaaa eeee eeee ee00 050 eeee eeee oeee a000 eeaa eeee 0000 a000 8888 eeee oeee 0000 060 eeee eeee eeee eee eeee eeee 070 eeee eeee eeee a000 eeea eeee e00e e000 eaaa eeee ee00 e000 eee0 eeee e0ee e0ee 080 ee0e eeee 000e 0000 eeaa eeee e00e ag00 e8aa eeee ee00 e000 ee00 eeee o000 0000 Instruction Step RTN PC IR MAR MBR AC MAR O PC 000 | 0000 000 0000 0000 Fetch IR O M[MAR] 000 1007 000 0000 0000 РС О РC + 1 001 | 1007 000 0000 0000 Decode OPCODE IR[15-12]=0001 001 | 1007 000 0000 0000 Load X Decode => Load MAR O IRL11-0] 001 | 1007 007 0000 0000 Get MBR O M[MAR] 001 1007 007 000A 0000 operand execute АС О МAR 001 1007 007 000A 000A
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning