Created
June 27, 2023 22:00
-
-
Save CodeMan99/ebb84bd5b0e8aebe1687328ca27c4be7 to your computer and use it in GitHub Desktop.
Assembly HelloWorld, binary size 392 bytes
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
.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" |
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
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