Question: 1. Write a report, your report should include algorithm and brief description for the following instruction i.syscall l.mov i.jal iv.SW 2. What is the use


1. Write a report, your report should include algorithm and brief description for the following instruction i.syscall l.mov i.jal iv.SW 2. What is the use of SvO and Sa0 register in sysc Reference code. main: li Svo, 4 # system call code for Print String la SaO, INPUT-i # load address of prompt into Sao syscall # print the input message li SVO, 5 # system call code for Read Integer syscall # reads the value of N into Svo move Sa0, SvO beq Sa0, 0, OUT-ZERO # i == 0 beq Sad, 1, OUT-ONEn# i == 1 jal FUN # i > 1 move Sto, SvO 1. Write a report, your report should include algorithm and brief description for the following instruction i.syscall l.mov i.jal iv.SW 2. What is the use of SvO and Sa0 register in sysc Reference code. main: li Svo, 4 # system call code for Print String la SaO, INPUT-i # load address of prompt into Sao syscall # print the input message li SVO, 5 # system call code for Read Integer syscall # reads the value of N into Svo move Sa0, SvO beq Sa0, 0, OUT-ZERO # i == 0 beq Sad, 1, OUT-ONEn# i == 1 jal FUN # i > 1 move Sto, SvO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
