Question: The microcontroller chip used by Dragon12-plus2 board Please use CodeWarrior to write an assembly program to do the following: The starting address of your main

The microcontroller chip used by Dragon12-plus2 board Please use CodeWarrior to write an assembly program to do the following:

The starting address of your main program is at $4000.

Your program must declare two variables called MyReading and MyNumber.

Reserve one byte for MyReading without an initial value, and initialize MyNumber with the initial value of $25.

The program must read from DIP switches and put the reading in MyReading, add the value from MyNumber to this reading (not hard-coded $25, in other words, your program should still work correctly if you change the initial value of MyNumber to a different number, for example, $12),

displays the sum using the LEDs. The program must do this continuously forever.

Please, use instructions compatible with HCS12D Family, MC9S12DG246B, Fulll chip simulation, absolute assembly. AND PLEASE follow the instructions,

I keep getting wrong answers from people that try to help, but I guess Im not being very specific. The note just above this should be more than useful for what Im seeking help with.

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!