AnsweredAssumed Answered

How to include a piece of assembler language  in  a C program

Question asked by Paolo Salvagnini on Sep 23, 2010
Latest reply on Sep 25, 2010 by Paolo Salvagnini

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

Outcomes