Skip to content

Instantly share code, notes, and snippets.

@nixpulvis
Created September 17, 2015 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nixpulvis/4463c4bdd3d4105991d6 to your computer and use it in GitHub Desktop.
Save nixpulvis/4463c4bdd3d4105991d6 to your computer and use it in GitHub Desktop.
.text
.global _start
_start:
movl $foo,%edx
movl $string,%ecx
movl $1,%ebx
movl $4,%eax
int $0x80
movl $0,%ebx
movl $1,%eax
int $0x80
.data
string: .ascii "Hello World!\n"
length = . - string
foo = length - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment