Implement c++ design given below. Assume that value is stored as a doubleword in memory, number is in EAX, and count is in ECX. You need only show the assembly code for the design. Submitting entire programs is not necessary
if (value ≤ 1000)
value = value + number*count;
MOV EBX, [value]
CMP EBX, 1000
JG _BIGGER
MUL ECX
ADD EAX, [value]
MOV [value], EAX
_BIGGER:
Comments
Leave a comment