org 100h
mov ax, 12
mov bx, 15
gcd:
cmp bx, 0
je hewleh
xor dx, dx
div bx
mov ax, bx
mov bx, dx
jmp gcd
hewleh:
add al, ‘0’
mov dl, al
mov ah, 2
int 21h
mov ah, 4Ch
int 21h Here's how to get 2 inputs prompt1 db 'Enter first number: $'
prompt2 db ‘Enter second number: $’
Here’s how to get 2 inputs prompt1 db ‘Enter first number: $’
prompt2 db ‘Enter second number: $’
New contributor
Batmyagmar B. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.