Computers and Technology, 21.10.2020 16:01 alexandra2442
Select the pseudo-code that most closely corresponds to the following assembly code. Assume that the variables a, b, c, and d are initialized elsewhere in the program. Pay close attention to the conditional jumps, the corresponding pseudo code may surprise you!
.data
; General purpose variables
a DWORD ?
b DWORD ?
c BYTE ?
d BYTE ?
upperLevel DWORD 18
lowerLevel DWORD 3
; Strings
yes BYTE "Yes",0
no BYTE "No",0
maybe BYTE "Maybe",0
.code
main PROC
mov eax, a
cmp eax, b
jle option1
je option2
jmp option3
option1:
mov edx, OFFSET yes
call WriteString
jmp endOfProgram
option2:
mov edx, OFFSET no
call WriteString
jmp endOfProgram
option3:
mov edx, OFFSET maybe
call WriteString
endOfProgram:
exit
main ENDP
END main
a. if (a < b) OR (a == b)
print (yes);
else
print (maybe);
b. if (a > b)
print (yes);
else if (a == b)
print (no);
else
print (maybe);
c. if (a < b)
print (yes);
else if (a == b)
print (no);
else
print (maybe);
d. if (a > b) OR (a == b)
print (yes);
else
print (maybe);
Answers: 3
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
Select the pseudo-code that most closely corresponds to the following assembly code. Assume that the...
Mathematics, 24.05.2020 07:57
Mathematics, 24.05.2020 07:57
Mathematics, 24.05.2020 07:58
Mathematics, 24.05.2020 07:58
Chemistry, 24.05.2020 07:58
Mathematics, 24.05.2020 07:58
Mathematics, 24.05.2020 07:58
Mathematics, 24.05.2020 07:58
Mathematics, 24.05.2020 07:58