Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [felix@qlaptop as]$ cat ../test.asm
- ;
- ; Simple memory transform-and-copy program
- ;
- _start:
- push 0
- copy:
- dup
- [i0:arg] sub 1228800 [f:yes] [r:discard]
- [ex(z)=1] jmp @stop
- push 0x00FF00FF
- get 1
- storei [ci:2]
- [i0:arg] add 4
- jmp @copy
- stop:
- syscall
- [felix@qlaptop as]$ ../bin/as ../test.asm -o ../test.bin -s
- SYMBOLS
- stop 9
- copy 1
- _start 0
Advertisement
Add Comment
Please, Sign In to add comment