Result

WA

Duration

487ms

Code [DL]

section .data
section .text
global main

write:
mov edx, 1
mov ecx, esp
add ecx, 16
mov ebx, 1
mov eax, 4
int 0x80
nop
leave
ret

is:
mov ebp,esp
sub esp,40
mov edx, ebp
add edx, 8
cmp [edx],0
je L1
mov edx, ebp
add edx, 8
mov ecx, [edx]

mov edx, ecx ; mod
LL:
cmp edx, 10
jl LE
sub edx, 10
j LL

LE:
add edx, 0x30
mov edi, esp
add edi, 16
mov  [edi], edx
div ecx, 10
sub edi, 8
mov  [edi], ecx
call is
call write
L1:
leave
ret

main:
push ebp
mov ebp, esp
sub esp, 80
mov edi, esp
add edi, 8
mov  [edi], 8998
leave
ret

stdin

81 63 44
45 27 98
07 07 49
93 66 02

stdout

stderr

/tmp/code.asm:32: error: parser: instruction expected
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