Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Assignment 9
- ; Steven Huynh
- INCLUDE Irvine32.inc
- .386
- .model flat,C
- .stack 4096
- ExitProcess proto,dwExitCode:dword
- Routine PROTO,
- array: SDWORD, blah: DWORD
- .data
- array SDWORD -5, 10, 20, -14, 17, 26, 42, 22, 19, -5
- .code
- main PROC
- INVOKE Routine, OFFSET array, LENGTHOF array
- main ENDP
- ;----------------------------------------------------
- Routine PROC USES ecx esi edi,
- val1: SDWORD, blah: DWORD
- ;
- ; Prompts user for 2 decimal numbers
- ; Receives: nothing
- ; Returns: nothing
- ;----------------------------------------------------
- mov eax, val1[8]
- call WriteInt
- ret
- Routine ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement