hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/aoc-2025/day4.asm
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-25 11:26:54 +0200
committerhachem <im@hachem.wtf>2026-08-25 11:26:54 +0200
commit2b0dad9d87b2b663ddc008876a4dbc3d17993d27 (patch)
tree7394aef05e1ca7c0518a0f7ff6d785c0304e1863 /aoc-2025/day4.asm
parent2806ed7d55266ececb197196af2fb84ae8c3cb35 (diff)
chore: refactor repository
Diffstat (limited to 'aoc-2025/day4.asm')
-rw-r--r--aoc-2025/day4.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/aoc-2025/day4.asm b/aoc-2025/day4.asm
new file mode 100644
index 0000000..475f2ef
--- /dev/null
+++ b/aoc-2025/day4.asm
@@ -0,0 +1,25 @@
+bits 64
+default rel
+
+global _start
+
+%define SYS_EXIT 60
+%define SYS_WRITE 1
+
+%define STDOUT 1
+
+section .data
+ message db "Hello Day 4!", 0xA
+ length equ $-message
+
+section .text
+_start:
+ mov rax, SYS_WRITE
+ mov rdi, STDOUT
+ mov rsi, message
+ mov rdx, length
+ syscall
+
+ mov rax, SYS_EXIT
+ xor rdi, rdi
+ syscall