hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Day2.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Day2.asm b/src/Day2.asm
new file mode 100644
index 0000000..d524d7c
--- /dev/null
+++ b/src/Day2.asm
@@ -0,0 +1,24 @@
+; Advent of Code 2025 - Day 2
+
+global _start
+
+%define SYS_EXIT 1
+%define SYS_WRITE 4
+
+%define STDOUT 1
+
+section .data
+ message db "Hello Day 2!", 0xA
+ length equ $-message
+
+section .text
+_start:
+ mov eax, SYS_WRITE
+ mov ebx, STDOUT
+ mov ecx, message
+ mov edx, length
+ int 0x80
+
+ mov eax, SYS_EXIT
+ xor ebx, ebx
+ int 0x80