Assembly Language : Suppose a program contains the following .data section. .dat
ID: 669698 • Letter: A
Question
Assembly Language : Suppose a program contains the following .data section.
.data
array DWORD 11223344h, 55667788h, 9900AABBh
You want to display the values in the array, one per line:
11223344
55667788
9900AABB
Fill in the missing instructions to do this.
mov ecx, 0 ; ECX will count up from 0
top: mov eax, [___________________] ; Load the next array element
call WriteHex ; Display that value...
call Crlf ; ...followed by a newline
add ecx, ___________________ ; Increase ECX
cmp ecx, ___________________ ; Are we done?
_____ top ; Jump back to show next element
Explanation / Answer
Answer:
top: mov eax,ecx
add ecx,1
cmp ecx,3
JMP top
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.