Please need help answering these question I git the rest but am stuck on these 4
ID: 3552414 • Letter: P
Question
Please need help answering these question I git the rest but am stuck on these 4.
1. What is the final value ofAL in this series of instructions?
MOV AL, 27H
MOV BL,37H
ADD AL,BL
DAA
2. If AL contains 55H and BL contains AAH, what is the result of:
(a) AND AL,BL---- AL = 55H = 01010101 binary. BL = AAH = 10101010 binary. ANDing these together gives us 00000000, or 00H. Therefore the destination, AL, would be 00H
(b) OR AL,BL
(c) XOR BL,AL
3. How many times does the NOP instruction executein the following sequence?
XYZ:
MOV PUSH MOV
CX,20H
ex ex, 9
ABC:
NOP
LOOP POP
ABC
ex
LOOP
XYZ
4.. Registers AX, BX, and CX containthe respective values 2000H, lOOOH, and 3000H. What is the result of CMPXCHG BX,CX?
5. If DX contains OOEEH and AX contains 0980,what is the result of:
MOV BX, OFOH
DIV BX
AX = DX:AX / op16 and DX = DX:AX % op16. 00EE:0980 / 00F0 = FDE8 (remainder 0), so we get the following:
AX = FDE8H
BX = 00F0H
CX = (unknown)
DX = 0000H
XYZ:
MOV PUSH MOV
CX,20H
ex ex, 9
ABC:
NOP
LOOP POP
ABC
ex
LOOP
XYZ
Explanation / Answer
1) IT will add AL and BL as if they were containing Decimal number and nut hexadecimal number ...
therefore, final value of AL will be 27 + 37 =64
2) AL contains 45... BL contains AA
45 = 0100 0101
AA = 1010 1010
a) AND will give us.. 00000000 = 00
b) OR will give us.. 1110 1111 = EF
c) XOR wil give us.. 1110 1111 = EF
4) since Bx and Cx are not same... therefore it will leave Bx as it is and reset the zero flag
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.