PACKED TO ASCII
1 year ago
Microprocessors
Assume cs: code, ds: data
data segment
ip1 db 56h
res dw 00h
data ends
code segment
start: mov ax, data
mov ds, ax
xor ax, ax mov al,ip1
mov dl, al
and al,0f0h
mov cl,4 ror al, cl
mov bh, al
and dl,0fh
mov bl, dl
add bx,3030h
mov res, bx
int 03h
code ends
end start
INPUT: OP1:56h
OUTPUT:
RES:3536h
Rusma Khadka
Sep 17, 2022