Advertisement
alexarcan

DMD_lab4

Oct 27th, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. .386
  2. .MODEL flat, stdcall
  3. Include kernel32.inc
  4. Include masm32.inc
  5. IncludeLib kernel32.lib
  6. IncludeLib masm32.lib
  7. .DATA
  8. msg db "Hello world!" , 0
  9. msg1 db 0,0,0,0,0 ;4 octeti si 0 pt end of the string (apar 2 de H)
  10.  
  11. .CODE
  12. start:
  13. Invoke StdOut, ADDR msg
  14. mov al, msg
  15. mov ah, 'A'
  16. add eax, 65660000h
  17. mov dword ptr msg1, eax
  18. Invoke StdOut, ADDR msg1
  19. Invoke ExitProcess, 0
  20.  
  21.  
  22.  
  23. END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement