Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Write an assembly program to Shift Arithmetic Right 3 bits based on the input entered by the user. Use below assembly code as

1. Write an assembly program to Shift Arithmetic Right 3 bits based on the input entered by the user. Use below assembly code as skeleton/reference. Do not deviate
.model small
.stack 100h
.data
num1 db 01010101b ;number to be shift
msg1 db Before shift : $
msg2 db After shift : $
; 0101010155h
; 0101010054h
.code
mov ax,@data
mov ds,ax
lea dx, msg1 ; display msg1
mov ah,09h
int 21h
mov dl, num1 ; display value before shift
mov ah,02h
int 21h
mov al, num1
SHL al,2
mov num1, al
lea dx, msg2 ; display msg2
mov ah,09h
int 21h
mov dl, num1 ; display value after shift
mov ah,02h
int 21h
mov ah,4ch
int 21h
end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

Students also viewed these Databases questions

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago