Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart EQU $4000 EQU $1000 Entry: _Startup: MO

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart EQU $4000 EQU $1000 Entry: _Startup: MO

Post by answerhappygod »

Problem 1 10 Points Consider The Following Assembly Program Romstart Ramstart Equ 4000 Equ 1000 Entry Startup Mo 1
Problem 1 10 Points Consider The Following Assembly Program Romstart Ramstart Equ 4000 Equ 1000 Entry Startup Mo 1 (61.13 KiB) Viewed 24 times
Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart EQU $4000 EQU $1000 Entry: _Startup: MORE: STRING TARGET DONE: A: Y: ORG RAMStart ORG ROMStart CLRA CLRB LDX #STRING LDAA 1, X+ BEQ DONE CMPA TARGET BNE MORE INCB JMP MORE BRA DONE ORG $3000 FCC FCB FCC ; Interrupt Vectors ORG $FFFE DC.W Entry B: ܚܪ ܐ ܢ ܠ ܟ ܗ ܢ ܣ ܩ ܚ ܕ ܝ PC: ;2 ;3 3. In one sentence, what does this program do? ;4 D: :5 :6 10 :7 ;8 "A PIECE-OF-CAKE EXAM THIS IS..." 0 ;9 Answer the following questions: 1. What are the addressing modes used in lines 1, 3, 5, and 6? ;10 2. What is the content of the following registers when the infinite loop is reached? (Enter "??" if impossible to know and consider using labels in your answers when actual numbers are unknown). ;11 ;12 ; Reset Vector X:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply