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:RES:28h

0
Rusma Khadka
Sep 17, 2022
More related questions

Questions Bank

View all Questions