Use 25 to 50 words to discuss one of the Shift, Rotate, Multiplication, Division Instructions and give a simple example of the .asm complete program code that you have compiled. Just keep the code simple with not much program description. Put your code in a program and make sure it compiles then copy it. Do some research, using articles other than your textbook would be great also. Please write the code s well or a screenshot also just write on any one either shift or rotate or multiplication
Shift Instructions : The main purpose of the shift instruction is move or shift a operand to the left or to the right bit by bit.
The shift instruction is used to move the register directly by the instructions-
1. Logical Shift Right (LSR).
2. Logical Shift Left (LSL)
3. Arithmetic shift right. (ASR)
4. Rotate right (ROR)
5. Rotate right with extend. (RRX)
Simple program to add two number in assembly language programming :
dosseg:
.model small
.stack 100h
.data
.code
main proc
mov bl, 78
mov cl, 76
add bl,cl
mov dl, bl
mov ah, 2
int 21h
mov ah,4ch
int 21h
main endp
end main
Get Answers For Free
Most questions answered within 1 hours.