[Solved]Question 2 Part Execute Program Sequence Includes Instructions Flag Control Group Observe Q37086051
Question 2: In this part, you will execute aprogram sequence that includes instructions from the flag-controlgroup to observe the operations that they perform. Save thesequence of DEBUG commands and their results to a Word documentnamed ASSIGNMENT2. Make sure to use snipping toolsor take screenshots to get information from DOS window and copy thedisplayed information to the document before it scrolls off the topof the screen.
- Assemble the following instruction sequence into memorystarting at address CS:100 and then verify loading of theinstructions.
- LAHF
- MOV BH, AH
- AND BH,1FH
- AND AH, 0E0H
- MOV [200H], BH
- SAHF
- How many bytes of memory do the instructions take up?_____________
- Initialize the byte of memory at DS:200 with the value 00H andthen verify that the contents of memory have been updated with aDUMP command.
- Clear registers AX and BX and verify by redisplaying theircontents.
- Display the current state of the flags. Change the flags toreflect the NG, ZR, AC, PE, and CY states.
- Execute the instructions one at a time with TRACE commands.Describe the operation performed by each instruction
- Instruction-a _________________________________________
- Instruction-b _________________________________________
- Instruction-c _________________________________________
- Instruction-d _________________________________________
- Instruction-e _________________________________________
- Instruction-f _________________________________________
- Briefly describe the overall operation performed by theinstruction sequence_______________________________________________________________________________________________________________________________________________________________________________________
- Describe any changes to the flags that result from execution ofthe instruction sequence.
_____________________________________________________________
- Exit DEBUG with the QUIT command.
Expert Answer
Answer to Question 2: In this part, you will execute a program sequence that includes instructions from the flag-control group to … . . .
OR

