Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. .386
  2. .model flat, stdcall
  3. option casemap :none
  4. include \masm32\include\windows.inc
  5. include \masm32\include\kernel32.inc
  6. include \masm32\include\masm32.inc
  7. include \masm32\include\msvcrt.inc
  8. include \masm32\macros\macros.asm
  9. includelib \masm32\lib\kernel32.lib
  10. includelib \masm32\lib\masm32.lib
  11. includelib \masm32\lib\msvcrt.lib
  12. .data?
  13. input1 DWORD ?
  14. input2 DWORD ?
  15. .code
  16. start:
  17. mov eax, input("Input1: ")
  18. mov ebx, offset input1;
  19. mov [ebx],eax
  20. mov eax, input("Input2: ") ;
  21. mov ebx, offset input2;
  22. mov [ebx],eax
  23. mov edx,input1
  24. mov input1,eax
  25. mov input2,edx
  26. printf("input1=%s input2=%s\n", input1,input2)
  27. inkey "Hit any Key"
  28. invoke ExitProcess, 0
  29. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement