Result

WA

Duration

502ms

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
cmp DWORD PTR [ebp+8],0
je L1
mov ecx, DWORD PTR [ebp+8]

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

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

main:
push ebp
mov ebp, esp
sub esp, 80
mov DWORD PTR [esp+8], 8998
leave
ret

stdin

05 61 02
09 99 32
09 08 04
29 93 13

stdout

stderr

/tmp/code.asm:19: error: comma, colon, decorator or end of line expected after operand
/tmp/code.asm:21: error: comma, colon, decorator or end of line expected after operand
/tmp/code.asm:28: error: parser: instruction expected
/tmp/code.asm:32: error: comma, colon, decorator or end of line expected after operand
/tmp/code.asm:34: error: comma, colon, decorator or end of line expected after operand
/tmp/code.asm:45: error: comma, colon, decorator or end of line expected after operand
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