Contoh pengurangan dan penjumlahan pada emu 8086.
org 100h
mov ah,1
int 21h
mov bl,al
sub bl,30h
mov ah,9
lea dx,a
int 21h
mov ah,1
int 21h
mov cl,al
sub cl,30h
add bl,cl
add bl,30h
mov ah,9
lea dx,b
int 21h
mov ah,2
mov dl,bl
int 21h
;operasipengurangan
sub bl,cl
mov ah,9
lea dx,d
int 21h
mov ah,2
mov dl,bl
int 21h
mov ah,9
lea dx,c
int 21h
mov ah,2
add cl,30h
mov dl,cl
int 21h
mov ah,9
lea dx,b
int 21h
sub bl,cl
add bl,30h
mov ah,2
mov dl,bl
int 21h
ret
a db '+$'
b db '=$'
c db '-$'
d db 10,13,'$'
org 100h
mov ah,1
int 21h
mov bl,al
sub bl,30h
mov ah,9
lea dx,a
int 21h
mov ah,1
int 21h
mov cl,al
sub cl,30h
add bl,cl
add bl,30h
mov ah,9
lea dx,b
int 21h
mov ah,2
mov dl,bl
int 21h
;operasipengurangan
sub bl,cl
mov ah,9
lea dx,d
int 21h
mov ah,2
mov dl,bl
int 21h
mov ah,9
lea dx,c
int 21h
mov ah,2
add cl,30h
mov dl,cl
int 21h
mov ah,9
lea dx,b
int 21h
sub bl,cl
add bl,30h
mov ah,2
mov dl,bl
int 21h
ret
a db '+$'
b db '=$'
c db '-$'
d db 10,13,'$'