Computers and Technology

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

answer
Answers: 1

Similar questions

Do you know the correct answer?
Assume that lo and hi have already been assigned as constants with lo < hi, and x has been decla...

Questions in other subjects:

Konu
Social Studies, 10.03.2021 18:20