Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

{Q-2} Suppose we are working with an architecture that has 4 registers (SRO,SR1,$R2 and $R3) and the memory is word-addressed. The instruction set for this

image text in transcribed

{Q-2} Suppose we are working with an architecture that has 4 registers (SRO,SR1,$R2 and $R3) and the memory is word-addressed. The instruction set for this architecture consists of the following operations: add op 1, op2 op 1 = op 1 + op2 sub op, op 2 op 1 = op1 - op2 move op1, op2 op 1 = op2 and the addressing modes are as follows: immediate # Register $Ri Direct label or number Indirect @ Shift n($RI) Auto-increment shift n($Ri)+ (after calculating the address of the operand it increments $Ri by 1). In an instant of time the registers and memory have the following state: CPU registers : $RO O $R11 $R20 $R32 MEMORY: 02 14 23 37 48 50 61 79 84 94 103 AN ONONOO O OOOO Given the following code and symbol table, show how the registers and memory are modified move $R1, #4 move SRO, 2@ move SR2, B add $R2, 2($R1) move C, @$RO move SRO, @4 (SR1 A6 B3 como C5 Symbol table@

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 Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

Introduce yourself with an elevator speech

Answered: 1 week ago