MC68HC908 Assembly Language Guide

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC68HC908 Assembly Language Guide

836 Views
eepty
Contributor I

I am modifing a software for the MC68HC908. In the original software, there is a part which is written in assembly language:

 

void IROutput()
{
     byte tcount, delay, count=10, data, ptr=0;

      data = Msg[ptr];

      asm {

                  entry:
                     LDA #2
                     STA tcount
                     LDA #31
                     STA delay
                     BRA high

                loop:
                     BCLR 5, PTB   ; Clear the output
                     DBNZ count, next
                     BRA exit;

                next:
                     LDA #31
                     STA delay
                     SEC
                     ROR data
                     BCS ntdo

.................

I have learnt assembly language long time ago, is there a guide for programming assembly language for this NXP microcontroller?

 

Thank you.

Labels (1)
0 Kudos
1 Reply

593 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Gary,

please refer this document

http://cache.nxp.com/files/microcontrollers/doc/ref_manual/CPU08RM.pdf

can this help you?


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos