eval.in

Paste #6673

x86 Assembly — NASM 2.07, pasted 4 years ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
extern printf
extern exit
global main

greet:
  pop eax
  push fmt
  push eax
  jmp printf

fmt db "Hello %s!", 10, 0

main:
  push name
  push exit
  jmp greet

name db "Charlie", 0

Program Output

Hello Charlie!

Exited with error status 86

Fork