Hello
I am not able to solve the problem of variable used in 'C' part and those used in assembler part.
I have defined in "C" program
byte name[5]
I want to include a piece of assembler already done where I have
asm
{
........
LDHX (how I can load the address of Name[0] i.e... the address of the beginning of vector used in "C")
}
How I can use the variables I have in "C" part of program in assembler part and conversely.
Suggest me some fonts.
Thanks
Paolo
Solved! Go to Solution.
Check the compiler manual for the S08, it has a HLI chapter.
When I remember right, the syntax is LDHX @name:0, but did not test it out.
Daniel
Check the compiler manual for the S08, it has a HLI chapter.
When I remember right, the syntax is LDHX @name:0, but did not test it out.
Daniel
Thanks it is working OK
Hello
Which MCU are you targeting?
Which compiler are you using (Freescale, ...)?
CrasyCat
The CPU is MC9S08AW32 and I am working with CodeWarrior