Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TITLE Hello, Assembly! (32 bites)
- INCLUDE Irvine32.inc
- .data
- HelloTxt BYTE "He.....225+*/*/llo, Assembly!", 0ah, 0
- A DWORD 5
- T SDWORD 1,2,-56,1956
- .code
- ; Belépési pont
- main PROC
- MOV ESI, offset T
- MOV ECX, N
- MOV EBX, 0
- ciklus:
- MOV EAX, [ESI]
- CMP EAX, 0
- JL semmi
- ADD EBX, EAX
- semmi:
- ADD ESI, 4
- LOOP ciklus
- MOVE EAX, EBX
- Call WriteInt
- Call Crlf
- INVOKE ExitProcess,0
- main ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement