
While you don’t need to memorize all of the instructions, you should know how to use
the manual to find any necessary information. For a handful of instructions however it
will be useful to know the following without referencing the manual:
• What the instruction does
• How to use it
• How many and what kind of parameters is takes (there are usually many cases
possible)
• How many CPU cycles it takes to execute (there are usually many cases
depending on the parameter)
Once you have written a piece of assembly code, you will need to compile it and load it
onto the microcontroller. To do so, we will be using a debugging tool called NoICE. To
get started with the NoICE debugger, please refer to NoICE_intro.doc which posted on
the course website.
Some Other Useful Information
• The ORG assembler directive indicates to the compiler where in the
microcontroller’s memory the assembly program should be stored.
• The RTS command is used to return from the current subroutine. If a subroutine
has not been called, RTS will end the program.
• The following is the memory map of the MC9S12DP256:
Komentarze do niniejszej Instrukcji