Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 2. Type in the program given below using the template, main.asm. Comment out the include statement. Add the statement RAMStart EQU $0900 right above

image text in transcribed
3 2. Type in the program given below using the template, main.asm. Comment out the include statement. Add the statement "RAMStart EQU $0900" right above the statement "ROMStart EQU $4000." Replace the variable definitions in the template by the variables in this homework. Replace the instructions in the template by the instructions in this homework . Do not leave any space in the beginning of a statement with the directive EQU, DS or DC. Leave at least a space before each instruction. Do not remove the statements "XDEF Entry, Startup" and "ABSENTRY Entry;" the labels "En- try" and "Startup," and the Interrupt Vectors" section in the template. 3. Compile and run it using "Single-Step" to find out what each instruction does. Make sure that the memory contents starting at the address $900 are displayed in the memory window. RAMStart EQU $0900 ROMStart EQU $4000 ORG RAMStart DS.B DS.B 5 DS.W vd DC.B $A$10.$B,"B" DC.W $03.$10,8900,8910,"1" ORG ROMStart Idaa #$12 staa va Idx $914 Idx #8914 Idan -1.x staa -12.x Idab 1,+x Idy b.x stab by sta 3x Idd sta (dx Idx #vd Idaa 2,x+ Idan 3,x+ staa 1,- rts va vb ve ve #5 3 2. Type in the program given below using the template, main.asm. Comment out the include statement. Add the statement "RAMStart EQU $0900" right above the statement "ROMStart EQU $4000." Replace the variable definitions in the template by the variables in this homework. Replace the instructions in the template by the instructions in this homework . Do not leave any space in the beginning of a statement with the directive EQU, DS or DC. Leave at least a space before each instruction. Do not remove the statements "XDEF Entry, Startup" and "ABSENTRY Entry;" the labels "En- try" and "Startup," and the Interrupt Vectors" section in the template. 3. Compile and run it using "Single-Step" to find out what each instruction does. Make sure that the memory contents starting at the address $900 are displayed in the memory window. RAMStart EQU $0900 ROMStart EQU $4000 ORG RAMStart DS.B DS.B 5 DS.W vd DC.B $A$10.$B,"B" DC.W $03.$10,8900,8910,"1" ORG ROMStart Idaa #$12 staa va Idx $914 Idx #8914 Idan -1.x staa -12.x Idab 1,+x Idy b.x stab by sta 3x Idd sta (dx Idx #vd Idaa 2,x+ Idan 3,x+ staa 1,- rts va vb ve ve #5

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

Campaign Finance Reform

Authors: Melissa M. Smith, Glenda C. Williams, Larry Powell, Gary A. Copeland

1st Edition

0739145657, 978-0739145654

More Books

Students also viewed these Finance questions

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago