hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/Day1.asm
blob: 6203572123f026b5db54a98ac318c02569b22344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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