From 729f3cea5b874defdfe27545a2449a026662595d Mon Sep 17 00:00:00 2001 From: Skiz Date: Thu, 29 Aug 2024 15:43:41 -0400 Subject: Made "Hello, World!" in ASM. --- src/first.s | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/first.s b/src/first.s index f778dee..e46b502 100644 --- a/src/first.s +++ b/src/first.s @@ -3,9 +3,17 @@ _start: - ; sys_write (print) + // sys_write (print) + mov rax, 1 + mov rdi, 1 + lea rsi, [hello_world] + mov rdx, 14 + syscall - ; sys_exit + // sys_exit mov rax, 60 mov rdi, 69 syscall + +hello_world: + .asciz "Hello, World!\n" -- cgit v1.2.3