Assembler manual for S12G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Assembler manual for S12G

514件の閲覧回数
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 返信

363件の閲覧回数
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 件の賞賛