Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2(A.) (15 points) Assemble the following code segment (use Appendix A1 in the book). Note that some rows in the machine code column may contain

image text in transcribed

2(A.) (15 points) Assemble the following code segment (use Appendix A1 in the book). Note that some rows in the machine code column may contain more than one byte, and some rows may have no machine code. Specify the address for each instruction on code in the LOCATION column. Do not forget the $-sign for hex numbers. Note: 'ORG $C000' is an assembler directive that sets the address for the opcode of the instruction immediately following the ORG statement to $C000. Assembler directives do not produce any machine code. 2(B.) (5 points) Indicate the addressing mode of each instruction in the appropriate column. ADDRESS MODE LOCATION MACHINE CODE $C000 ORG LDX SC000 SOC LDY LDX LDAA SOE 11,X 0,Y 3, X LDAB SBA 2(C.) (20 points) Hand execute the above program assuming the initial processor conditions below. In each row, please fill in the contents of the registers/memory cell AFTER the execution of the corresponding instruction. Assume the following memory model. Do not forget the $-sign for hex numbers. LOCATION DATA $000A $00 SOOOB SOC $000C S00 $000D SOD SO00E $00 $000F SOA STEP # Before exec. PC $C000 Y $FFFF $FFFFT 10000 2(A.) (15 points) Assemble the following code segment (use Appendix A1 in the book). Note that some rows in the machine code column may contain more than one byte, and some rows may have no machine code. Specify the address for each instruction on code in the LOCATION column. Do not forget the $-sign for hex numbers. Note: 'ORG $C000' is an assembler directive that sets the address for the opcode of the instruction immediately following the ORG statement to $C000. Assembler directives do not produce any machine code. 2(B.) (5 points) Indicate the addressing mode of each instruction in the appropriate column. ADDRESS MODE LOCATION MACHINE CODE $C000 ORG LDX SC000 SOC LDY LDX LDAA SOE 11,X 0,Y 3, X LDAB SBA 2(C.) (20 points) Hand execute the above program assuming the initial processor conditions below. In each row, please fill in the contents of the registers/memory cell AFTER the execution of the corresponding instruction. Assume the following memory model. Do not forget the $-sign for hex numbers. LOCATION DATA $000A $00 SOOOB SOC $000C S00 $000D SOD SO00E $00 $000F SOA STEP # Before exec. PC $C000 Y $FFFF $FFFFT 10000

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions