subject
Engineering, 26.02.2020 05:52 66468

4. (40 pts) 7. Branch and Jump Instructions Given below is a MIPS assembly language function labeled FNC1. The address of each instruction is specified to the left in hexadecimal. The arguments passed to this function are $a0 and $a1.

0x00001000 FNC1: lb $t0, 0($a0)
0x00001004 sb $t0, 0($a1)
0x00001008 beq $t0, $zero, End
0x0000100C addi $a0, $a0, 1
0x00001010 addi $a1, $a1, 1
0x00001014 j FNC1
0x00001018 End: nop

(a) Briefly describe what this function does.
(b) Determine the instruction type (R, I, or J), and the decimal value of each field of the instruction for the branch instruction in the function given above.
(c) Specify the machine language (ML) instruction, in hexadecimal, for the branch instruction above.
(d) Determine the instruction type (R, I, or J), and the decimal value

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 19:30, 10040813
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
image
Engineering, 04.07.2019 16:10, TheOriginalMeyah
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
image
Engineering, 04.07.2019 18:20, moneywaydaedae
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
image
Engineering, 04.07.2019 19:10, Destinationz
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
You know the right answer?
4. (40 pts) 7. Branch and Jump Instructions Given below is a MIPS assembly language function labeled...

Questions in other subjects:

Konu
Mathematics, 04.09.2019 23:30