sarahannann6707 sarahannann6707
  • 03-12-2020
  • Computers and Technology
contestada

Write a simplified machine language program that has register $s0 loop through the numbers 0, 100, 200, ..., 500. See Lab 11 for details on submitting the simplified machine language programs.

Respuesta :

ajeigbeibraheem
ajeigbeibraheem ajeigbeibraheem
  • 04-12-2020

Answer:

Explanation:

     li $s4 , 100 // Initialize register $s4 with 500 for checking the condition when $s0 is equal to 500

Loop : li $s0 , 0 // Initialize register $s0 with0

abc : addi $s0 , 100  // Add 100 to register $s0

bne $s0, $s4 , abc  // Branch to label abc if not equal to 500

beq $s0, $s4 , Loop   // Branch to label Loop if equal to 500

Answer Link

Otras preguntas

Does an owl have a backbone?
What all the multiples of 81?
What is the creepiest sounding scale? What scale would u use for writing creepy music in other words
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
Does an owl have a backbone?
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
The inner and outer Radii of a cylindrical pipe are 5 cm and 4 cm respectively. find the area of cross section of the pipe.
A blue rope is 3 times the length as a red rope. A green rope is 5 times as log as the blue rope of the total length of all 3 ropes equals 508.25m what is the l
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
What all the multiples of 81?