Skip to content

Instantly share code, notes, and snippets.

@kusabanachi
Last active November 8, 2015 13:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kusabanachi/1638f5dc5fb93d420067 to your computer and use it in GitHub Desktop.
Save kusabanachi/1638f5dc5fb93d420067 to your computer and use it in GitHub Desktop.
.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