diff options
| author | hachem <im@hachem.wtf> | 2025-12-05 14:47:59 +0100 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-12-05 14:47:59 +0100 |
| commit | aa41e4d289b997e48b333818707376a4469c47ca (patch) | |
| tree | 91949b24d1d97f61a2afd0a29219e36033499ab7 /src/Day1.asm | |
| parent | 53b5a1ed3e18789615497b499d03509e20d24539 (diff) | |
[init]: prepare workspace
Diffstat (limited to 'src/Day1.asm')
| -rw-r--r-- | src/Day1.asm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Day1.asm b/src/Day1.asm new file mode 100644 index 0000000..6203572 --- /dev/null +++ b/src/Day1.asm @@ -0,0 +1,22 @@ +; Advent of Code 2025 - Day 1 + +global _start + +%define SYS_EXIT 1 +%define SYS_WRITE 4 + +section .data + message: db "Hello World!", 0xA + messageLen: equ $-message + +section .text +_start: + mov eax, SYS_WRITE + mov ebx, 1 + mov ecx, message + mov edx, messageLen + int 0x80 + + mov eax, SYS_EXIT + xor ebx, ebx + int 0x80 |
