Explanation of Solution
Executing the test plan for the
The following
Program:
BR Main ; Branch
sum: .WORD 0x0000 ; Set up word with zero
num1: .BLOCK 2 ; Set up a 2 byte block for num1
num2: .BLOCK 2 ; Set up a 2 byte block for num2
num3: .BLOCK 2 ; Set up a 2 byte block for num3
Main: LDA sum,d ; Load 0 into the accumulator
DECI num1,d ; Read a value for num1
DECI num2,d ; Read a value for num2
DECI num3,d ; Read a value for num3
ADDA num3,d ; Add value of num3 with accumulator
ADDA num2,d ; Add value of num2 with accumulator
ADDA num1,d ; Add value of num1 with accumulator
...
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
Computer Science Illuminated
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education