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

image text in transcribedimage text in transcribedimage 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 S-sign for hex numbers. A. ADDA #$80 PCA SC000 S80 TY S9FFF ML($A000) ML (SA001) ML($A002) $3C SCC $80 S9FFE Initial After B. LDAA 2.x PC SC000 $80 LP ML($A000) ML($A001) ML($A002) $3C SCC S80 $9FFE $9FFF Initial After C. STY 2.Y Y PCA SC000 X $9FFE M L($A000) ML (SA001) ML($A002) $3C SCC $80 $80 $9FFF Initial After D. SUBA 3.Y | PC SC000 A $80 x S9FFE ML($A000) ML($A001) ML ($A002) SCC $80 Initial After Sec. A.1 INSTRUCTION SET TABLE AND PROGRAMMING MODEL 509 Source Operation Condition Codes Boolean Expression Addr. Mode Machine Code Op Form Code Operand px (opr) Load Index Register X ol M:(M+ 1) X CE -- - 1 DE WWWWNWNW Bytes OOOO A OU AW Cycles ny (opr) Load Index Register Y M:(M +1) X IMM ikk X DIR dd X EXT FE hh II X IND,X X INDY CD EE Y IMM 18 CE jjkk Y DIR 18 DE Y EXT 18 FE hh ! Y IND, X 1A EEff Y IND.Y 18 EEff FYT 1 Y LSL (opr) Logical Shift Left Memory zobu 18 AD LDAA (opr) Load Accumulator A MA - - - B6 INDY A IMM A DIR A EXT A IND, X A IND,Y B IMM B DIR B EXT B INDEX BIND, Y 18 A6 ff LDAB (opr) Load Accumulator B M B D6 F6 E6 18 E6 CC hh II ff ff kk LDD (opr) Load Accumulator D M:(M+1) 33-1---1110:1 INH 15 -- RTI RTS SBA SBCA (opr) Return from Interrupt Return from Subroutine Subtract B from A Subtract with Carry from A See Text See Text A-BA A-M-C - A ---111111 INH INH A MM A DIR A EXT A IND,X A ININ Y 10 A 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 S-sign for hex numbers. A. ADDA #$80 PCA SC000 S80 TY S9FFF ML($A000) ML (SA001) ML($A002) $3C SCC $80 S9FFE Initial After B. LDAA 2.x PC SC000 $80 LP ML($A000) ML($A001) ML($A002) $3C SCC S80 $9FFE $9FFF Initial After C. STY 2.Y Y PCA SC000 X $9FFE M L($A000) ML (SA001) ML($A002) $3C SCC $80 $80 $9FFF Initial After D. SUBA 3.Y | PC SC000 A $80 x S9FFE ML($A000) ML($A001) ML ($A002) SCC $80 Initial After Sec. A.1 INSTRUCTION SET TABLE AND PROGRAMMING MODEL 509 Source Operation Condition Codes Boolean Expression Addr. Mode Machine Code Op Form Code Operand px (opr) Load Index Register X ol M:(M+ 1) X CE -- - 1 DE WWWWNWNW Bytes OOOO A OU AW Cycles ny (opr) Load Index Register Y M:(M +1) X IMM ikk X DIR dd X EXT FE hh II X IND,X X INDY CD EE Y IMM 18 CE jjkk Y DIR 18 DE Y EXT 18 FE hh ! Y IND, X 1A EEff Y IND.Y 18 EEff FYT 1 Y LSL (opr) Logical Shift Left Memory zobu 18 AD LDAA (opr) Load Accumulator A MA - - - B6 INDY A IMM A DIR A EXT A IND, X A IND,Y B IMM B DIR B EXT B INDEX BIND, Y 18 A6 ff LDAB (opr) Load Accumulator B M B D6 F6 E6 18 E6 CC hh II ff ff kk LDD (opr) Load Accumulator D M:(M+1) 33-1---1110:1 INH 15 -- RTI RTS SBA SBCA (opr) Return from Interrupt Return from Subroutine Subtract B from A Subtract with Carry from A See Text See Text A-BA A-M-C - A ---111111 INH INH A MM A DIR A EXT A IND,X A ININ Y 10 A

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago