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 Idx $914 #$914 Idan -1.x -12.x Idab 1,+x Idy b.x stab by 3.x Idd dx/ Idx #vd Idaa 2,x+ Idan 3.x+ 1,- va vb ve ve VA Idx stan stan stas staa rts 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 Idx $914 #$914 Idan -1.x -12.x Idab 1,+x Idy b.x stab by 3.x Idd dx/ Idx #vd Idaa 2,x+ Idan 3.x+ 1,- va vb ve ve VA Idx stan stan stas staa rts

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 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 403 (b) plan?

Answered: 1 week ago

Question

Question Can a Keogh plan fund be reached by the owners creditors?

Answered: 1 week ago