Question: Develop an assembly program so it can perform the following tasks within one program. Use the MC68HC11 DATS board coding. Show the following: Source Code
Develop an assembly program so it can perform the following tasks within one program. Use the MC68HC11 DATS board coding.
Show the following:
Source Code
Addressing Mode
Memory Address
Machine Code
# of Cycles
PLEASE SHOW ALL STEPS!!!!

Initialize 2 variables, coUNT and ToKEN, with memory locations $C200 and $C300 respectively. Start a subroutine. Name the loop as START. Load accumulator A with a value of #$05. Store this value in COUNT. Load accumulator B with a value of #$B. Store this value in TOKEN Load index register X with a value of #$07. Start a loop. Name it as L1. Increment the value of COUNT Decrement the index register. Branch to L2 (which is a new loop that you have to create) if content of X is 0. Increment the value in TO Decrement the COUNT value. Branch to L3 (which is a new loop that you have to create) if COUNT value is 0. Decrement the TOKEN value. Branch to EXIT loop (create it) if content of TOKEN is 0. Clear contents of A and B accumulators Go back to START module. End of program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
