Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. macro proc string, symbol
  2. {
  3.         push string
  4.         push symbol
  5.         call _proc
  6. }
  7.  
  8. macro printString string
  9. {
  10.         push string
  11.         call _printString
  12. }
  13.  
  14. macro openFile fileName, descriptorAddr
  15. {
  16.         push 3Dh
  17.         push fileName
  18.         push descriptorAddr
  19.         call _openCreateFile
  20. }
  21.  
  22. macro createFile fileName, descriptorAddr
  23. {
  24.         push 3Ch
  25.         push fileName
  26.         push descriptorAddr
  27.         call _openCreateFile
  28. }
  29.  
  30. macro readFile descriptor, buffer, size
  31. {
  32.         push descriptor
  33.         push buffer
  34.         push size
  35.         call _readFile
  36. }
  37.  
  38. macro writeFile descriptor, buffer, size
  39. {
  40.         push descriptor
  41.         push buffer
  42.         push size
  43.         call _writeFile
  44. }
  45.  
  46. macro closeFile descriptor
  47. {
  48.         push descriptor
  49.         call _closeFile
  50. }
  51.  
  52. macro printString string
  53. {
  54.         push string
  55.         call _printString
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement