Untitled
unknown
plain_text
3 years ago
575 B
0
Indexable
Never
section .data str1: db "Enter number",0xA len1: equ $-str1 cnt : db 0 section .bss input:resb 20 length : resb 20 %macro wr 4 mov rax,%1 mov rdi,%2 mov rsi,%3 mov rdx,%4 %endmacro section .text global _start _start: wr 1,1,str1,len1 syscall wr 0,0,input,200 syscall DEC rax mov byte[cnt],16 mov rsi,length up: rol rax,4 mov bl,al AND bl,0FH CMP bl,09H JBE l ADD bl,07H l: ADD bl,30H mov byte[rsi],bl inc rsi dec byte[cnt] jnz up wr 1,1,length,16 syscall mov rax,60 mov rdi,00 syscall