Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Run the code. MOV AL,9AH MOV CL,3 ;set number of times to shift SHR AL, CL (After three times of shifting right ) AL=.H,AlandCF=(fromprogram)

image text in transcribed
image text in transcribed
image text in transcribed
1) Run the code. MOV AL,9AH MOV CL,3 ;set number of times to shift SHR AL, CL (After three times of shifting right ) AL=.H,AlandCF=(fromprogram) 2) Write a code that loads 77H into BL and shifts BL four times by using SHR. 3) Run the code. MOV DH,10101001b MOV CL, 3 SAR DH,CL (After the three shifts): DH= b and CF= (from program ) 4) Run the code. MOV AL,36H: AL =00110110b MOVCL,3;CL=3 number of times to rotate ROR AL,CL AL= b, CF=, (from program) 10) Run the code. ORG 100h MOV AL, VAR1; check value of VAR1 by moving it to AL. LEA BX, VAR1; get address of VAR1 in BX. MOV BYTE PTR [BX], 44h; modify the contents of VAR1. MOV AL,VAR1; Check value of VAR1 by moving it to AL RET VAR1 DB 22h END VAR1 = AL= (from program) HOMEWORK: 1) In question 1, find the result by calculating. Compare with the value you get. 9AH;10011010b bCF=, (shifted once) b CF= (shifted twice) b CF=, (shifted three times) 2) In question 3 , find the result by calculating. Compare with the value you get. b CF= (shifted once) b CF= (shifted twice) bCF=. (shifted three times) 3) In question 4, find the result by calculating. Compare with the value you get. bCF=. (ROTATE once) b CF= (ROTATE twice) b CF= (ROTATE three times) 4) In question 8 , find the result by calculating. Compare with the value you get. b CF = (ROTATE once) b CF= (ROTATE twice) 5) Run the code. ORG 100h CLD LEA SI, a1 LEA DI, a2 MOVCX,3 REP MOVSB RET a1 DB 1,15,9 a2 DB 3 DUP(0) Contents of a1 = Contents of a2 = Explain this code, LEA and MOVSB instructions

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

14. I no longer take people or things for granted.

Answered: 1 week ago