Computers and Technology
Computers and Technology, 04.04.2020 02:09, joy3449

During the 2017 Dallas Hackathon, your company's server computer was crashed by a hacker (fabricated story). The hacker has left behind a paper with the following piece of information:
.data
.globl count
count: .word 8
.globl list
list: .word -2,3,12,0,10,-3,9,5
.globl str
str: .asciiz "The result is:"
.globl space
space: .asciiz " "
.globl newln
newln: .asciiz "\n"
.align 2
.text
.globl main
main:
[0x00400020] 0x3c011001
[0x00400024] 0x342b0004
[0x00400028] 0x3c011001
[0x0040002c] 0x8c2e0000
[0x00400030] 0x000e6080
[0x00400034] 0x000ca021
[0x00400038] 0x000e6843
[0x0040003c] 0x018b6020
[0x00400040] 0x000d6880
[0x00400044] 0x01ab6820
[0x00400048] 0x218cfffc
[0x0040004c] 0x8d6f0000
[0x00400050] 0x8d900000
[0x00400054] 0xad700000
[0x00400058] 0xad8f0000
[0x0040005c] 0x216b0004
[0x00400060] 0x016d8822
[0x00400064] 0x1620fff9
[0x00400068] 0x34020004
[0x0040006c] 0x3c011001
[0x00400070] 0x34240024
syscall
li $15, 0
print: li $v0, 4
la $a0, space
syscall
lw $a0, list($15)
li $v0, 1
syscall
addi $15, $15, 4
slt $8, $15, $20
bnez $8, print
li $v0, 4
la $a0, newln
syscall
li $v0, 10
syscall
As an acknowledged expert of MIPS assembly, you realize that this is the critical part of the server software with addresses (labels) on the left and machine code on the right. You now try to save the server by translating the machine code to make a complete and sensible MIPS program. Write down the sequence of equivalent MIPS assembly instructions, and state what will be printed on the console window if the complete program is executed).

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, caromaybelline71
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
image
Computers and Technology, 23.06.2019 10:50, Leffew
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
image
Computers and Technology, 23.06.2019 16:10, alexis9658
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
Do you know the correct answer?
During the 2017 Dallas Hackathon, your company's server computer was crashed by a hacker (fabricated...

Questions in other subjects:

Konu
Mathematics, 23.06.2019 14:00