Q2: follow the following program and show how it will affect the flags 1. Program one ? a) MOV DX, 896AH MOV CX, 9CABH ADD DH, CL ADC CX, DX DX=?, CX=?, CF=?, PF=?, AF=?, SF=?, ZF=? b) 2. The second program MOV AX, 29FEH MOV CX, 8C03H SHL AH, CL SBB AX, CX AX=?, CX=?, CF=?, PF=?, AF=?, SF=?, ZF=? Page 1 of 2 3. What the following program do and show the result for each step, and find the effective address of one of the instructions MOV AX, 05H MOV CX, AX Back: DEC CX MUL CX TEST CX JNZ Back ; results stored in AX ; to store the result at D000H MOV [D000], AX HLT

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 6E: (Conversion) a. Write a C++ program to convert meters to feet. The program should request the...
icon
Related questions
Question
Q2: follow the following program and show how it will affect the flags
1. Program one
?
a)
MOV DX, 896AH
MOV CX, 9CABH
ADD DH, CL
ADC CX, DX
DX=?, CX=?,
CF=?, PF=?, AF=?, SF=?, ZF=?
2. The second program
b) MOV AX, 29FEH
MOV CX, 8C03H
SHL AH, CL
SBB AX, CX
AX=?, CX=?,
CF=?, PF=?, AF=?, SF=?, ZF=?
Page 1 of 2
3. What the following program do and show the result for each step, and find
the effective address of one of the instructions
MOV AX, 05H
MOV CX, AX
Back: DEC CX
MUL CX
TEST CX
JNZ Back
; results stored in AX
; to store the result at D000H
MOV [D000], AX HLT
Transcribed Image Text:Q2: follow the following program and show how it will affect the flags 1. Program one ? a) MOV DX, 896AH MOV CX, 9CABH ADD DH, CL ADC CX, DX DX=?, CX=?, CF=?, PF=?, AF=?, SF=?, ZF=? 2. The second program b) MOV AX, 29FEH MOV CX, 8C03H SHL AH, CL SBB AX, CX AX=?, CX=?, CF=?, PF=?, AF=?, SF=?, ZF=? Page 1 of 2 3. What the following program do and show the result for each step, and find the effective address of one of the instructions MOV AX, 05H MOV CX, AX Back: DEC CX MUL CX TEST CX JNZ Back ; results stored in AX ; to store the result at D000H MOV [D000], AX HLT
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr