Org

an anonymous user · July 01, 2020 · Assembly
section .data
    digit db 0,10 
section .text
global _start

_start:
    mov rax, 6
    mov rbx, 2
    div rbx
    call _print
_print:
    add rax, 48
    mov[digit], al
    mov rax, 1 
    mov rdi, 1
    mov rsi, digit
    mov rdx, 2
    syscall

Comments

Please sign up or log in to contribute to the discussion.