User:Alon Alush

From Wikipedia, the free encyclopedia

This user is a Jewish atheist.
section .data
    msg db 'Hi there! I love assembly language', 0

section .text
    global _start

_start:
    ; Print the message
    mov eax, 4        ; syscall number for sys_write
    mov ebx, 1        ; file descriptor (stdout)
    mov ecx, msg      ; pointer to the message
    mov edx, 32       ; message length
    int 0x80          ; call kernel

    ; Exit program
    mov eax, 1        ; syscall number for sys_exit
    xor ebx, ebx      ; exit status 0
    int 0x80          ; call kernel

Pages I've created:

Related Articles

Wikiwand AI