SHL
2 years ago
Microprocessors
Assume cs: code, ds: data
data segment
op1 db 00h
cnt db 00h
res db 00h
data ends
code segment
start: mov ax, data
mov ds, ax
sub ax, ax
mov al,op1
mov cl, cnt
shl al, cl mov res, al
int 3h
code ends
end start
INPUT: OP1:25h
cnt:03h
OUTPUT:
Rusma Khadka
Sep 17, 2022