Guest User

Untitled

a guest
Jun 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. [felix@qlaptop as]$ cat ../test.asm
  3. ;
  4. ; Simple memory transform-and-copy program
  5. ;
  6.  
  7. _start:
  8. push 0
  9. copy:
  10. dup
  11. [i0:arg] sub 1228800 [f:yes] [r:discard]
  12. [ex(z)=1] jmp @stop
  13.  
  14. push 0x00FF00FF
  15. get 1
  16.  
  17. storei [ci:2]
  18.  
  19. [i0:arg] add 4
  20. jmp @copy
  21.  
  22. stop:
  23. syscall
  24.  
  25. [felix@qlaptop as]$ ../bin/as ../test.asm -o ../test.bin -s
  26. SYMBOLS
  27. stop 9
  28. copy 1
  29. _start 0
Advertisement
Add Comment
Please, Sign In to add comment