Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q2 (20 points, two parts) Consider the following assembly sequence S1500 org movw #SolA8,$1000 movw $0196, S1002 movw #$0135, $1004 ldd subd std ldd addd
Q2 (20 points, two parts) Consider the following assembly sequence S1500 org movw #SolA8,$1000 movw $0196, S1002 movw #$0135, $1004 ldd subd std ldd addd std end ; initialize word @SI000 to value #SolA8 $1000 $1002 $1008 $1004 $1008 S1010 A. What does this code do? Explain (10 points) Data Memory $1000 The program does A-B-$0012 Stored in $1002, then add C to $0012 And store results in $1010 B. Fill up the values of the data memory shown after executing the Program. Show the address of each memory location. (10 points) LDAB op Load D LDS copn Load SP LOX cop Load index register x LOY cop Load index registar Y Load elective address into SP SP otective address LEAS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started