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