Assembler language and Architecture 2. inn is worth 50 porms that includes pomus
ID: 3582261 • Letter: A
Question
Explanation / Answer
format PE console
include 'win32a.inc'
mov esi,nD
mov ecx,[qcnD]
mov [negative_sum_result],0
mSum:
cmp dword [esi],0
jg mNotNeg
mov eax,[negative_sum_result]
add eax,dword [esi]
mov [negative_sum_result],eax
mNotNeg:
invoke ExitProcess,0
nD dd 1,-2,-3,4,5,-6,-7,8,9,10
qcnD dd ($-nD)/4
negative_sum_result dd ?
include 'APIkernel32.inc'
data import
library kernel32,'KERNEL32.DLL'
end data
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.