Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find the values of general pupose registers for each code after executing all lines of each code seperately which will be assembled with TASM. Assume
Find the values of general pupose registers for each code after executing all lines of each code seperately which will be assembled with TASM. Assume that initial values of all general purpose registers for both codes are 4351 (in base 10). (Give your answers in hexadecimal and do not erase modified value, just put a comma and write the new value, e.g. AX: 36 4E, 67 7A, ...)
(i)
MOV BX,21
MOV AL,AH
MOV BH,AL
MOV CX,7979
INC DL
MUL CH
XOR BX,CX
ADD CL,08
DEC DL
ROR DX,CL
NOT CX
SUB AX,0383
AAA
(ii)
DEC BH
NOT AX
SUB AX,DX
PUSH AX
AND CX,AX
MOV AX,BX
DIV AL
POP DX
MOV BX,AX
AND AH,0F0H
INC CX
SAR DX,CL
AAM
Computer engineering Micro processor lesson
Wanted answer :
(i)
AX:
BX:
CX:
DX:
(ii)
AX:
BX:
CX:
DX:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started