HELP: _startupData.pZeroOut:1

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

HELP: _startupData.pZeroOut:1

Jump to solution
590 Views
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!

Labels (1)
0 Kudos
1 Solution
464 Views
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

View solution in original post

0 Kudos
4 Replies
465 Views
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 Kudos
464 Views
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 Kudos
464 Views
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.


464 Views
sunshixian
Contributor I

Thanks a million. I really appreciate it.

0 Kudos