Question: ( 8 Points ) Fill in the blanks in the following assembly language that is equivalent to the C program. Use ( mathrm

(8 Points) Fill in the blanks in the following assembly language that is equivalent to the C program. Use \(\mathrm{jl},\mathrm{jle},\mathrm{jg}\), or jge to implement the following pseudo code in \(\mathrm{C}/\mathrm{C}++\).
while( n = aValue )\{
sum = sum + n;
n = n -1;
}
// the following assembly implements the above C code
aValue WORD ?
n WORD?
sum WORD 0
. CODE
mov eax, n
cmp eax, aValue
(Choose one of the following il, ile, jag or jige)
continue
add Sum, eax
sub n,1
jmp
Continue:
...
...
( 8 Points ) Fill in the blanks in the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!