Question: 1. Create a Code Warrior project using Create New Project (choose HCS124HCS12C Family+MC9812032, Full-chip Simulation and Absolute Assembly). 2. Type in the program given below

 1. Create a Code Warrior project using Create New Project (choose

1. Create a Code Warrior project using Create New Project (choose HCS124HCS12C Family+MC9812032, Full-chip Simulation and Absolute Assembly). 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 3 DS.B 5 DS.W 4 vd DC.B $A$10.8B,"B" DC.W $03,810,8900,8910,"1" ORG ROMStart Idan #$12 stan Idx $914 Idx #8914 Idan - 1x stan -12.x Idab 1.+x Idy bx stab by sta (3x) Idd #5 sta dx/ Idx #vd Idan 2.x+ Idaa 3,x+ va vb ve ve VA staa rts 1. Create a Code Warrior project using Create New Project (choose HCS124HCS12C Family+MC9812032, Full-chip Simulation and Absolute Assembly). 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 3 DS.B 5 DS.W 4 vd DC.B $A$10.8B,"B" DC.W $03,810,8900,8910,"1" ORG ROMStart Idan #$12 stan Idx $914 Idx #8914 Idan - 1x stan -12.x Idab 1.+x Idy bx stab by sta (3x) Idd #5 sta dx/ Idx #vd Idan 2.x+ Idaa 3,x+ va vb ve ve VA staa rts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!