Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Assignment 9
  2. ; Steven Huynh
  3.  
  4. INCLUDE Irvine32.inc
  5.  
  6. .386
  7. .model flat,C
  8. .stack 4096
  9. ExitProcess proto,dwExitCode:dword
  10.  
  11. Routine PROTO,
  12.     array: SDWORD, blah: DWORD
  13.  
  14. .data
  15. array SDWORD -5, 10, 20, -14, 17, 26, 42, 22, 19, -5
  16.  
  17. .code
  18. main PROC
  19.    
  20.     INVOKE Routine, OFFSET array, LENGTHOF array
  21.  
  22. main ENDP
  23.  
  24. ;----------------------------------------------------
  25. Routine PROC USES ecx esi edi,
  26.     val1: SDWORD, blah: DWORD
  27. ;
  28. ; Prompts user for 2 decimal numbers
  29. ; Receives: nothing
  30. ; Returns: nothing
  31. ;----------------------------------------------------
  32.     mov eax, val1[8]
  33.     call WriteInt
  34.     ret
  35.  
  36. Routine ENDP
  37.  
  38.  
  39. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement