Assembler manual for S12G

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

Assembler manual for S12G

499 Views
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 Kudos
1 Reply

348 Views
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 Kudos