Download DSP56300 Assembly Code Development Using the Freescale
Transcript
Freescale Semiconductor, Inc. Helpful Coding and Debugging Tips Assembly Coding Example 5-6 Simulator Output of Register Values MOTOROLA DSP56300 SIMULATOR: VERSION 6.0.33 06-26-96 radix h Freescale Semiconductor, Inc... change aar0 8931 help aar0 Read-Write core register. X:fffff9 Port A Address Attribute Register B B A A B B B B B B B B B B B B B B B B B B B B B B C C A A A A A A A A A A N N N N P B Y X P A A A 1 1 C C C C C C C C C C C C C C A A E E E A T T 1 0 9 8 7 6 5 4 3 2 1 0 3 2 1 0 C M N N N P 1 0 --------.-------.-------.-------.-------.------0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 0 1 < Bit States --------.-------.-------.-------.-------.------2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 < Bit Number 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 A suitable portion of the output may then be pasted into the assembly code and commented out as follows: Example 5-7 Register Display Used in Code Comments ;B B ;A A B B B B B B B B B B B B B B B B B B B B B B ;C C A A A A A A A A A A N N N N P B Y X P A A A ;1 1 C C C C C C C C C C C C C C A A E E E A T T ;1 0 9 8 7 6 5 4 3 2 1 0 3 2 1 0 C M N N N P 1 0 ;-------.-------.-------.-------.-------.------;0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 0 1 ;-------.-------.-------.-------.-------.------move Notes: #$8931,aar0 1. The demarcations of the nibble boundaries were manually added to the above examples for illustrative purposes. This may be included as a feature in later versions of the tools. 2. The debugger must be used to generate the displays of OnCE or PLL registers. 5-6 DSP56300 Assembly Code Development For More Information On This Product, Go to: www.freescale.com