subject
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).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
You know the right answer?
During the 2017 Dallas Hackathon, your company's server computer was crashed by a hacker (fabricated...
Questions
question
History, 02.01.2020 17:31
question
Mathematics, 02.01.2020 17:31
question
Mathematics, 02.01.2020 17:31
question
Chemistry, 02.01.2020 17:31
Questions on the website: 13722360