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 | |
| parent | 53b5a1ed3e18789615497b499d03509e20d24539 (diff) | |
[init]: prepare workspace
| -rw-r--r-- | .gitignore | 56 | ||||
| -rw-r--r-- | src/Day1.asm | 22 |
2 files changed, 23 insertions, 55 deletions
@@ -1,55 +1 @@ -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf - -# debug information files -*.dwo +bin/ 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 |
