Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please explain as well. 1. (28 points) For each of the following questions, assume that the registers are initialized to the following values (i.e., each
Please explain as well.
1. (28 points) For each of the following questions, assume that the registers are initialized to the following values (i.e., each part is independent of the others). Note: ML is short for memory location. Give the contents of the registers after each instruction is executed. All numbers shown are HEX numbers except when noted otherwise. DO NOT leave any box empty (even if the contents don't change) - empty boxes will be counted wrong! Also, do not use a DASHin a box and do not forget the $-sign for hex numbers. A. ADDA #$80 A PC $C000 X $9FFE Y $9FFF ML($A000) ML($A001) ML($A002) $3C $CC $80 $80 Initial After B. LDAA.2.x A PC $C000 $C002 X $9FFE Y $9FFF ML($A000) ML($A001) ML($A002) $3C $CC $80 Initial After $80 C. STY.2.Y. PC $C000 A X $9FFE Y $9FFF ML(SA000) ML(SA001) ML(SA002) $3C $CC $80 $80 Initial After D. SUBA 3.Y X Y PCA $C000 ML(SA000) ML(SA001) ML(SA002) $3C $CC $80 Initial After $80 $9FFE $9FFF 1. (28 points) For each of the following questions, assume that the registers are initialized to the following values (i.e., each part is independent of the others). Note: ML is short for memory location. Give the contents of the registers after each instruction is executed. All numbers shown are HEX numbers except when noted otherwise. DO NOT leave any box empty (even if the contents don't change) - empty boxes will be counted wrong! Also, do not use a DASHin a box and do not forget the $-sign for hex numbers. A. ADDA #$80 A PC $C000 X $9FFE Y $9FFF ML($A000) ML($A001) ML($A002) $3C $CC $80 $80 Initial After B. LDAA.2.x A PC $C000 $C002 X $9FFE Y $9FFF ML($A000) ML($A001) ML($A002) $3C $CC $80 Initial After $80 C. STY.2.Y. PC $C000 A X $9FFE Y $9FFF ML(SA000) ML(SA001) ML(SA002) $3C $CC $80 $80 Initial After D. SUBA 3.Y X Y PCA $C000 ML(SA000) ML(SA001) ML(SA002) $3C $CC $80 Initial After $80 $9FFE $9FFFStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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