Facebook
From Mature Dormouse, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 243
  1. format PE Console 4.0
  2.  
  3. include 'win32a.inc'  ; OTWIERA PLIK win32a
  4.  
  5. ;printf(char* fmt, int*, int*);
  6.  
  7. push _witaj
  8. call [printf]
  9.  
  10. push ax
  11. push si
  12. push _fmtPrzedZmiana
  13. call [printf]
  14.  
  15. ADD ax, 4
  16. SUB si, 178
  17.  
  18. push ax
  19. push si
  20. push _fmt
  21. call [printf]
  22.  
  23. mov eax, 0
  24. ret
  25.  
  26. _witaj db "Projekt Assembler - Dawid Lower",0Ah,0
  27. _fmtPrzedZmiana db "Rejestry si i ex przed zmiana = %i, %i",0Ah,0
  28. _fmt db "Rejestry si i ex po zmianie = %i, %i",0Ah,0
  29.  
  30.  
  31. data import
  32.  library msvcrt,'MSVCRT.DLL'
  33.  import msvcrt, printf,'printf'
  34. end data