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

the sum of the speeds of two trains is 720.2 mph. if the speed of the first train is 7.8 mph faster than the second train, find the speeds of each.
what is this answer. 7/b - 3/b
Which literary device has Emily Dickinson used in these lines? How dreary to be somebody! How public, like a frog To tell your name the livelong day To an admir
If t17 = 3 (t5) in an arithmetic progression, find t1 in terms of d.
PLEASE HELP, HISTORY!!!! What was Herbert Hoover and the Food Administration do in WWI?
what happened as agriculture became entrenched in the south ?
A purging of emotions, specially pity and fear
who established the peoples Republic of China in 1949
Please help with Algebra 2!!!!! 20 POINTS!
Explain why you would or would not have a LASIK surgery if you wore contacts or glasses.Describe how public opinions related to this surgery have changed over t