Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PCSpim requires all assembly mnemonics and registers specifiers to be written in lower case. PCSpim also requires that $ 0 be used when referring to

PCSpim requires all assembly mnemonics and registers specifiers to be written in lower
case. PCSpim also requires that $0 be used when referring to the $ zero register. If you
encounter syntax errors, please refer to Appendix B to obtain the proper syntax of the
various instructions. Pay particular attention to the syntax of the lui instruction.
Once you have finished typing your code, you are ready to simulate it. If you are able to load
an assembly file into PCSpim without encountering any problems, the code is syntactically
correct.
Before simulating your program, make sure the following boxes in the simulator settings
window are unchecked: bare machine, delayed branches, delayed load, load exception file.
By default, all code in PCSpim starts at address 0x0040000 and all data are stored starting at
location 0x10010000.
Before you simulate your program, you must initialize the program counter to the
appropriate value. To initialize the program counter of the provided sample program, you
need to open PCSpim click on "Simulator" from the menu Set Value Register Name:
PC Value: 000400000. The value differs from one program to another.
You also have to change a few settings regarding how your program runs on the simulator.
To do that, go to the program menu: Simulator -> Settings. Uncheck the following: Bare
Machine, Delayed Branches, Delayed Loads.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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