Test I. SAP3 Programming. Create a SAP3 assembly code with 15 lines/instructions according to the specifications below per line. (One line, one instruction only). LINE 1. LINE 2. LINE 3. LINE 4. LINE 5. LINE 6. LINE 7. LINE 8. LINE 9. LINE 10. LINE 11. LINE 12. LINE 13. LINE 14. LINE 15. Load an immediate value of 2001H to extended register D and E. Load an immediate value of 2109H to extended register B and C. Load an immediate value of 2205H to extended register H and L. Assign a value of 3003H to the stack pointer. Add the contents of the accumulator to C register and carry flag. Load to the accumulator the contents of the address pointed by extended register D and E. Store the contents of extended register E and D to the address 3001H and 3002H, respectively. Retrieve the contents of the stack and store to extended registers H and L Move the contents of B register to the memory location pointed by H and L registers. Decrement the contents of extended register D and E Add the contents of accumulator and register L Jump to Line 10 if carry flag is one Add the contents of extended registers HL and BC. Store the result to HL. Store the contents of registers L and H to addresses 200BH and 200CH, respectively End the subroutine

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

Write Legibly.

Test I. SAP3 Programming. Create a SAP3 assembly code with 15 lines/instructions according
to the specifications below per line. (One line, one instruction only).
LINE 1.
LINE 2.
LINE 3.
LINE 4.
LINE 5.
LINE 6.
LINE 7.
LINE 8.
LINE 9.
LINE 10.
LINE 11.
LINE 12.
LINE 13.
LINE 14.
LINE 15.
Load an immediate value of 2001H to extended register D and E.
Load an immediate value of 2109H to extended register B and C.
Load an immediate value of 2205H to extended register H and L.
Assign a value of 3003H to the stack pointer.
Add the contents of the accumulator to C register and carry flag.
Load to the accumulator the contents of the address pointed by extended
register D and E.
Store the contents of extended register E and D to the address 3001H and
3002H, respectively.
Retrieve the contents of the stack and store to extended registers H and L
Move the contents of B register to the memory location pointed by H and L
registers.
Decrement the contents of extended register D and E
Add the contents of accumulator and register L
Jump to Line 10 if carry flag is one
Add the contents of extended registers HL and BC. Store the result to HL.
Store the contents of registers L and H to addresses 200BH and 200CH,
respectively
End the subroutine
Transcribed Image Text:Test I. SAP3 Programming. Create a SAP3 assembly code with 15 lines/instructions according to the specifications below per line. (One line, one instruction only). LINE 1. LINE 2. LINE 3. LINE 4. LINE 5. LINE 6. LINE 7. LINE 8. LINE 9. LINE 10. LINE 11. LINE 12. LINE 13. LINE 14. LINE 15. Load an immediate value of 2001H to extended register D and E. Load an immediate value of 2109H to extended register B and C. Load an immediate value of 2205H to extended register H and L. Assign a value of 3003H to the stack pointer. Add the contents of the accumulator to C register and carry flag. Load to the accumulator the contents of the address pointed by extended register D and E. Store the contents of extended register E and D to the address 3001H and 3002H, respectively. Retrieve the contents of the stack and store to extended registers H and L Move the contents of B register to the memory location pointed by H and L registers. Decrement the contents of extended register D and E Add the contents of accumulator and register L Jump to Line 10 if carry flag is one Add the contents of extended registers HL and BC. Store the result to HL. Store the contents of registers L and H to addresses 200BH and 200CH, respectively End the subroutine
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Arithmetic Operation and Code Conversion in Number System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L