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

Write HCl+MgO---> MgCl 2 + H 2 O as a balanced chemical equation
30w^3 -6w --------------- 6w
solve for x: 2xsquared+4x-16=0
which will hit the ground faster a ball thrown parallel to the ground or a ball drop from the same height as the ball
at a local fitness center, members pay a $12 membership fee and $5 for each aerobic class. Nonmembers pay $6 for each aerobic class. for what number of aerobics
Janna’s target heart rate zone is 140bpm - 182bpm. Amy’s target heart rate zone is 140bpm - 186bpm. Jill‘s target heart rate zone is 146bpm - 186bpm. Christi zo
if the value of my home has tripled since I bought it, that means its relative change in value is 300% true or false
Describe two advantages of classification.
Explain how a drought might result in a famine.
What is the empirical formula for a compound with the molecular formula C6H12Cl2O2? (1) CHClO (3) C3H6ClO (2) CH2ClO (4) C6H12Cl2O2