Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part A:StepsSteps 1 . Go to the PathSim 5 Jar file and double click it to run it , you need Java 8 installed for

Part A:StepsSteps1. Go to the PathSim5 Jar file and double click it to run it , you need Java 8 installed for it to run. 2. Select and copy the snippet of assembly code appearing in the box below and paste it into the Instruction Input box in PathSim. The Instruction Input box is a text box and, therefore, you can do some text-editing within the box. Next, assemble the set of instructions by pressing the Assemble button. PathSim expects that ALL lines are terminated with an end-of-line. Note: Please rewrite the assembly code to notepad first and then copy it from notepad to PathSim. Copying it straight from this HTML page might not work. If copying from Notepad doesnt work, then you have to type the code. 3. Select and copy the three lines of words with addresses given after the comment #Data Memory and paste it into the Data Input box. Press the Load button within the Data Input box; the data should load successfully. If not, check to see that there are no empty lines nor spaces within the text. Also, make sure the third line is terminated with an end-of-line marker.4. Select and copy the one word with register number appearing after the comment #Register Values and paste it into the Register Input box. Press the Load button within the Register Input box; the word should load successfully into the specified register. If not, make sure that the line is terminated with an end-of-line marker and there are not empty lines nor spaces. 5. Place the mouse over the rectangle marked PC shown in the data path diagram and left-click the mouse. Left-clicking on PC steps through the machine instructions that were assembled from the snippet of assembly code, one instruction per click. As you step through the code, place the mouse over data lines shown in the data path diagram and left-click the mouse. A popup box will appear showing the value which is on that line. Observe the values placed on data lines as you step through each instruction. Record only the values as indicated in the tables given at the end of this document. But make sure you also understand how the values are established for all instructions. These tables should be pasted and filled in a Ms Word document. Troubleshooting: Sometimes PathSim will not run the instruction or start jumping instructions or get stuck. You have to Reset the machine ("By clicking the Reset Machine button") and start from the begining again. Assignment: Question-1: #Assembly Code lw $a3,0($t1)lw $a1,4($t1)lw $t6,8($t1)add $s1,$a1,$a3sub $t3,$t6,$a1and $t4,$a3,$a1or $s2,$t6,$a3sw $s2,0x20($t1) #Data Memory 064:00005432068:0000768706C:00009AB4 #Register Values9:00000064

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

Students also viewed these Databases questions