ASCII Subtraction
1 year ago
Microprocessors
Assume cs: code, ds: data
data segment
asc1 db 09H
asc2 db 06H
res dw 00h
data ends
code segment
start: mov ax,data
mov ds,ax
xor ax,ax
mov al,asc1
mov bl,asc2
sub al,bl
aas
or ax,3030h
mov res,ax
int 3
code end
s end start
INPUT: ASC1: 09H ASC2: 06H
OUTPUT:
RES: 3033H
Rusma Khadka
Sep 17, 2022