.globl main
main:
#read
mov $0x3, %al
xorl %ebx, %ebx
mov %esp, %ecx
xorl %edx, %edx
inc %edx
int $0x80
mov %ebx, %esi
#write
mov $0x4, %al
mov $0x1, %bl
int $0x80
#exit
mov $0x1, %al
xorl %ebx, %ebx
int $0x80