Paste: Subtraction
Author: | r1nu- |
Mode: | assembly-x86 |
Date: | Wed, 1 Jul 2009 23:57:13 |
Plain Text |
jmp start
msg:db "Enter the first number",13,10,"$"
msg2:db "Enter the second number",13,10,"$"
start
mov ah,09
lea dx,msg
int 21h
mov ah,01
int 21h
mov dl,al
push dx
mov ah,09
lea dx,msg2
int 21h
mov ah,01
int 21h
sub al,30h
pop dx
add dl,al
mov ah,2
sub dl,al
int 21h
int 20h
Author: | r1nu- |
Mode: | assembly-x86 |
Date: | Wed, 1 Jul 2009 23:58:41 |
Plain Text |
jmp start
msg:db "Enter the first number",13,10,"$"
msg2:db "Enter the second number",13,10,"$"
start:
mov ah,09
lea dx,msg
int 21h
mov ah,01
int 21h
mov dl,al
push dx
mov ah,09
lea dx,msg2
int 21h
mov ah,01
int 21h
sub al,30h
pop dx
add dl,al
mov ah,2
sub dl,al
int 21h
int 20h
New Annotation