HELP: _startupData.pZeroOut:1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HELP: _startupData.pZeroOut:1

跳至解决方案
1,460 次查看
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,334 次查看
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,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 项奖励
回复
1,334 次查看
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 项奖励
回复
1,334 次查看
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,334 次查看
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 项奖励
回复