Question: 1 . Write an assembly program to Shift Arithmetic Right 3 bits based on the input entered by the user. Use below assembly code as
Write an assembly program to Shift Arithmetic Right bits based on the input entered by the user. Use below assembly code as skeletonreference Do not deviate
model small
stack h
data
num db b ;number to be shift
msg db Before shift : $
msg db After shift : $
; h
; h
code
mov ax@data
mov dsax
lea dx msg ; display msg
mov ahh
int h
mov dl num ; display value before shift
mov ahh
int h
mov al num
SHL al
mov num al
lea dx msg ; display msg
mov ahh
int h
mov dl num ; display value after shift
mov ahh
int h
mov ahch
int h
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
