hello,guys! I am new to freescale. when i read the start12.c, i cannot understand " _startupData.pZeroOut:1" ,is this the low two bytes of a 24bit address?Please help me! Thanks!
解決済! 解決策の投稿を見る。
Hello
The instruction LDX _startupData.pZeroOut:1 loads register X with the low 16-bits of the address from startupData.pZeroOut.
This notation is described in {Install}\\Help\PDF\Compiler_HC12.pdf, chapter Using the Compiler, section High-Level Inline Assembler for the Freescale HC(S)12 > Special Features > Addresses of Variables.
CrasyCat
Hello
The instruction LDX _startupData.pZeroOut:1 loads register X with the low 16-bits of the address from startupData.pZeroOut.
This notation is described in {Install}\\Help\PDF\Compiler_HC12.pdf, chapter Using the Compiler, section High-Level Inline Assembler for the Freescale HC(S)12 > Special Features > Addresses of Variables.
CrasyCat
Thanks a million. I really appreciate it.
Just additional information:
S12(X) CPU reference manual
http://www.freescale.com/files/microcontrollers/doc/ref_manual/S12XCPUV2.pdf
You can find there detail description of every instruction.
I hope that help you.
Thanks a million. I really appreciate it.