Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 386
- .model flat, stdcall
- .stack 4096
- ExitProcess PROTO, dwExitCode: DWORD
- .data
- masyvas DWORD 5d,9d,103d,37d,20d,201d,8d
- .code
- main PROC
- mov esi, OFFSET masyvas
- mov ecx, LENGTHOF masyvas
- mov eax,0
- mov ebx,9d
- mov edx,0
- mov edi,100d
- ciklas:
- mov eax, [esi]
- cmp eax,ebx
- ja L1
- L3:
- add esi, TYPE masyvas
- CMP ecx,0
- je L4
- loop ciklas
- L1:
- cmp edi,eax
- ja L2
- jb L3
- L2:
- add edx,[esi]
- jmp L3
- L4:
- INVOKE ExitProcess, 0
- main ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement