Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 DASH- in a box and do not forget the $-sign for hex numbers. | A. STAA $A002 X Y PC $C000 ML($A000) ML($A001) ML($A002) $30 $CC SFF $80 $9FFF SA000 Initial After B. ADDA 2.X A PC $C000 X $9FFF Y $A000 ML($A000) ML($A001) ML($A002) $30 $CC $FF $80 Initial After C. SUBA 1,4 A PC $C000 X $9FFF Y $A000 ML($A000) ML($A001) ML($A002) $3C $CC $FF $80 Initial After D. STY 2.X A X Y PC $C000 ML($A000) $3C ML($A001) $CC ML($A002) $FF $80 $9FFF $A000 Initial After 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 DASH- in a box and do not forget the $-sign for hex numbers. | A. STAA $A002 X Y PC $C000 ML($A000) ML($A001) ML($A002) $30 $CC SFF $80 $9FFF SA000 Initial After B. ADDA 2.X A PC $C000 X $9FFF Y $A000 ML($A000) ML($A001) ML($A002) $30 $CC $FF $80 Initial After C. SUBA 1,4 A PC $C000 X $9FFF Y $A000 ML($A000) ML($A001) ML($A002) $3C $CC $FF $80 Initial After D. STY 2.X A X Y PC $C000 ML($A000) $3C ML($A001) $CC ML($A002) $FF $80 $9FFF $A000 Initial After

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Finance questions