Guest User

Untitled

a guest
Nov 20th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. .386
  2. .model flat, stdcall
  3.  
  4. includelib <c:masm32libkernel32.lib>
  5. includelib <c:masm32libuser32.lib>
  6.  
  7. ExitProcess PROTO , :DWORD
  8. MessageBoxA PROTO , :DWORD, :DWORD, :DWORD, :DWORD
  9.  
  10. .data
  11. caption db "MyPr", 0
  12. message db "to be or not to be. there is the question.", 0
  13.  
  14. .code
  15. Winmain PROC
  16. lea esi, message
  17.  
  18. _proc:
  19. mov al, [esi]
  20.  
  21. cmp al, 0
  22. jz _end
  23.  
  24. cmp al, 'a'
  25. jna _next
  26.  
  27. cmp al, 'z'
  28. jnb _next
  29.  
  30. add BYTE PTR [esi], 'A' - 'a'
  31.  
  32. _next:
  33. inc esi
  34. jmp _proc
  35.  
  36.  
  37. _end:
  38. push 0
  39. push offset caption
  40. push offset message
  41. push 0
  42. call MessageBoxA
  43.  
  44. push 0
  45. call ExitProcess
  46.  
  47. Winmain endp
  48. end Winmain
Add Comment
Please, Sign In to add comment