section .data yukicoder db 'yukicoder' buf db 0 section .text global _start _start: call read call check call write call exit read: mov rsi, buf mov rdx, 10 syscall ret check: mov al, [buf + r10] mov dil, al cmp dil, 63 jz check_ret inc r10 loop check check_ret: ret write: mov rax, 1 mov rdi, rax lea rsi, [yukicoder + r10] mov rdx, rax syscall ret exit: mov rax, 60 xor rdi, rdi syscall