HELP: _startupData.pZeroOut:1

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

HELP: _startupData.pZeroOut:1

ソリューションへジャンプ
1,461件の閲覧回数
sunshixian
Contributor I

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!

ラベル(1)
0 件の賞賛
返信
1 解決策
1,335件の閲覧回数
CrasyCat
Specialist III

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

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,336件の閲覧回数
CrasyCat
Specialist III

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

0 件の賞賛
返信
1,335件の閲覧回数
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 件の賞賛
返信
1,335件の閲覧回数
RadekS
NXP Employee
NXP Employee

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.


1,335件の閲覧回数
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 件の賞賛
返信