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.
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!
-----------------------------------------------------------------------------------------------------------------------