section .data
msg db 'The Division is:', 10
msgLen equ $-msg
num1 db 6H
num2 db 3H
section .bss
DIV1 resb 1
temp resb 1
section .text
global _start
_start:
mov rax,1
mov rdi,1
mov rsi,msg
mov rdx, msgLen
syscall
mov al,byte[num1]
div byte[num2]
mov byte[DIV1],al
mov bp,2
up:rol al,4
mov bl,al
and al,0Fh
cmp al,09
jbe down
add al,07h
down:Add al, 30h
Mov byte[temp],al
mov rax,1
mov rdi,1
mov rsi,temp
mov rdx, 1
syscall
mov al,bl
dec bp
jnz up
mov rax,60
mov rdi,0
syscall
To embed this project on your website, copy the following code and paste it into your website's HTML: