Advertisement
Guest User

Untitled

a guest
May 28th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. inline fn putc(chr : int)
  2. [[
  3. [i0:pop] syscall[ci:1]
  4. ]]
  5.  
  6. fn main() -> int
  7. {
  8. putc('d');
  9. putc('e');
  10. putc('f');
  11. }
  12.  
  13.  
  14.  
  15.  
  16.  
  17. main:
  18. bpget
  19. spget
  20. bpset
  21.  
  22. ; putc(int(100))
  23. push 100
  24. [i0:pop] syscall[ci:1]
  25. push 0
  26. drop
  27.  
  28. ; putc(int(101))
  29. push 101
  30. [i0:pop] syscall[ci:1]
  31. push 0
  32. drop
  33.  
  34. ; putc(int(102))
  35. push 102
  36. [i0:pop] syscall[ci:1]
  37. push 0
  38. drop
  39.  
  40. bpget
  41. spset
  42. bpset
  43. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement