Assembler manual for S12G

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

Assembler manual for S12G

1,149 次查看
paulung
Contributor I

Hi there

How can I write the following code in C. It is taken from AN4258SW\Bootloader_S12\Sources\StartS12.s.

...

AppResetVect: equ $effe ; here is stored reset vector of user application

...

ldd AppResetVect
cpd #$ffff
beq GoBoot ; if the application reset vector is not available
                    ; then start the bootloader
ldx AppResetVect
jmp 0,x ; jump to the application

Is there an assembler manual for S12?


Many thanks.

Paul.

0 项奖励
回复
1 回复

998 次查看
RadekS
NXP Employee
NXP Employee

Hi Paul,

Please look at S12(X) CPU manual for more details about assembler instructions:

http://www.nxp.com/assets/documents/data/en/reference-manuals/S12XCPUV2.pdf

 

The assembler manual is located in Help folder of your CW installation. The CW5.1 default path is:

"c:\Program Files (x86)\Freescale\CWS12v5.1\Help\PDF\Assembler_HC12.pdf"

I hope it helps you.

Have a great day,
Radek

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

0 项奖励
回复