Question: Write a program in PLP The Task: Write a program in PLP assembly that counts up by one (starting from either zero or one) inside
The Task: Write a program in PLP assembly that counts up by one (starting from either zero or one) inside a loop and writes this value to the LEDs every time the value is increased. The memory address of the LEDs is Oxfo200000. The table below shows the meaning and an example usage of the instructions covered in the video, PLP Instructions for Project 1. Instruction Example Usage Meaning Register St0 is set to the value,8 The value in register St1 is used as the memory address. The value in register St2 is copied into this memory address. Load Immediate li Sto,t8 Store Word sw $t2, 0(St1) addiu St4, St3, 29 Register St4 is assigned the sum of 29 and the value in j your label name The program jumps to the line following the label, your label name: Defines a label called "your label name:" that can be Add register $t3. Jump "your label name:" Label jumped to The image below shows the buttons that will allow you to enter simulation mode, view the LEDs, and run your program. Two things to keep in mind regarding simulation mode: Simulation controls will,such as run, are only visible when simulation mode has been toggled on The program cannot be edited while simulation mode is toggled on 1. 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
