Computers and Technology, 30.11.2019 01:31, aubreykenzie686
Assume that lo and hi have already been assigned as constants with lo < hi, and x has been declared as dword in the data segment. also, irvine's library is included, and randomize has already been called. which of the following code fragments will assign to x a "random" integer in the range [lo .. hi]? check all that apply.
a.
push lo
push hi
call randomrange
pop x
b.
mov eax, hi
call randomrange
mov x, eax
mov eax, lo
call randomrange
sub x, eax
c.
mov eax, hi
sub eax, lo
inc eax
call randomrange
add eax, lo
mov x, eax
d.
mov eax, hi
mov ebx, lo
dec ebx
sub eax, ebx
call randomrange
add eax, lo
mov x, eax
Answers: 1
Computers and Technology, 31.07.2019 22:20, bercishicicorbin
Answers: 1
Computers and Technology, 06.08.2019 21:20, mrsjenrucker
Answers: 2
Assume that lo and hi have already been assigned as constants with lo < hi, and x has been decla...
Social Studies, 10.03.2021 18:20
Social Studies, 10.03.2021 18:20
Mathematics, 10.03.2021 18:20
Mathematics, 10.03.2021 18:20
Mathematics, 10.03.2021 18:20
Mathematics, 10.03.2021 18:20
Mathematics, 10.03.2021 18:20