Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TITLE Hello, Assembly! (32 bites)
- INCLUDE Irvine32.inc
- .data
- A DWORD 5
- T SDWORD 1,2,3,-56,1956,5 ; Meg a tomb
- B WORD 4
- .code
- ; Belépési pont
- main PROC
- ;A*T[2]+B
- MOVE AX, [T+4] ; AX = T[2]
- CWDE ; EAX = T[2]
- IMUL EAX, A ; EAX = A*T[2]
- MOVSX EBX, B ; EBX = B
- ADD EAX, EBX
- CALL WriteInt
- Call Crlf
- INVOKE ExitProcess,0
- main ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement