Result

WA

Duration

525ms

Code [DL]

section .data
section .text
global _start

write:
push ebp
mov ebp, esp
mov edx, 1
mov ecx, ebp
add ecx, 8
mov ebx, 1
mov eax, 4
int 0x80
leave
ret

pi:
push ebp
mov ebp, esp
mov eax, [ebp+8]
cmp eax, 10
jl NO
mov edx, 0
div 10
push edx
push eax
call pi
mov eax, [esp+4] ; mod
add eax, 0x30
push eax
write
NO:
leave
ret

_start:
push ebp
mov ebp, esp
push 8989
call pi
leave
ret

stdin

85 45 80
02 52 39
61 60 15
23 10 51

stdout

stderr

/tmp/code.asm:31: error: symbol `write' redefined
gcc: error: /tmp/code.o: No such file or directory
gcc: fatal error: no input files
compilation terminated.
/bin/script: 16: /bin/script: /tmp/code: not found
rm: cannot remove '/tmp/code.o': No such file or directory
rm: cannot remove '/tmp/code': No such file or directory

strace