Skip to content

Instantly share code, notes, and snippets.

@CodeMan99
Created June 27, 2023 22:00
Show Gist options
  • Save CodeMan99/ebb84bd5b0e8aebe1687328ca27c4be7 to your computer and use it in GitHub Desktop.
Save CodeMan99/ebb84bd5b0e8aebe1687328ca27c4be7 to your computer and use it in GitHub Desktop.
Assembly HelloWorld, binary size 392 bytes
.global _start
.intel_syntax noprefix
_start:
mov rax, 1
mov rdi, 1
lea rsi, [hellomsg]
mov rdx, 13
syscall
mov rax, 60
mov rdi, 0
syscall
hellomsg:
.asciz "Hello World\n"
hello: hello.o
ld hello.o -o hello -s -n
hello.o: hello.s
as hello.s -o hello.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment