MC68HC908 Assembly Language Guide

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC68HC908 Assembly Language Guide

889 次查看
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.

标签 (1)
标记 (2)
0 项奖励
1 回复

646 次查看
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 项奖励