Last active
November 8, 2015 13:24
-
-
Save kusabanachi/1638f5dc5fb93d420067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl _main | |
_main: | |
.word 0x0000 | |
pushl $11 | |
pushab hello | |
pushl $1 | |
calls $3, _write | |
pushl $0 | |
calls $1, _exit | |
.set write, 4 | |
_write: | |
.word 0x0000 | |
chmk $write | |
ret | |
.set exit, 1 | |
_exit: | |
.word 0x0000 | |
chmk $exit | |
halt | |
hello: | |
.byte 'h, 'e, 'l, 'l, 'o, ' , 'V, 'A, 'X, '!, 0xa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment