Answered step by step
Verified Expert Solution
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:StepsSteps Go to the PathSim Jar file and double click it to run it you need Java installed for it to run. 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 textediting within the box. Next, assemble the set of instructions by pressing the Assemble button. PathSim expects that ALL lines are terminated with an endofline. 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. 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 endofline marker 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 endofline marker and there are not empty lines nor spaces. Place the mouse over the rectangle marked PC shown in the data path diagram and leftclick the mouse. Leftclicking 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 leftclick 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: #Assembly Code lw $a$tlw $a$tlw $t$tadd $s$a$asub $t$t$aand $t$a$aor $s$t$asw $sx$t #Data Memory ::C:AB #Register Values:
Part A:StepsSteps Go to the PathSim Jar file and double click it to run it you need Java installed for it to run. 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 textediting within the box. Next, assemble the set of instructions by pressing the Assemble button. PathSim expects that ALL lines are terminated with an endofline. 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. 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 endofline marker 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 endofline marker and there are not empty lines nor spaces. Place the mouse over the rectangle marked PC shown in the data path diagram and leftclick the mouse. Leftclicking 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 leftclick 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: #Assembly Code lw $a$tlw $a$tlw $t$tadd $s$a$asub $t$t$aand $t$a$aor $s$t$asw $sx$t #Data Memory ::C:AB #Register Values:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started