Programming Fundamentals/Introduction/Assembly
Appearance
hello_x86.asm
[edit | edit source];This program displays "Hello world!"
;
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
msg db 'Hello, world!', 0xa
len equ $ - msg
hello_x64.asm
[edit | edit source]Try It
[edit | edit source]Copy and paste the code above into one of the following free online development environments or use your own Assembly compiler / interpreter / IDE.