[Icc-avr] Again assembly question

sbissonnette at microsyl.com sbissonnette at microsyl.com
Fri May 30 18:53:55 PDT 2008


Hi,

    I still have problem with my project,  I need to have a one variable
accessible in C and in ASM.  I had try this

Thanks for your time
Sylvain Bissonnette

/*********************************/

extern ushort SquareLSB;

/*********************************/
void main(void)
{

	SquareLSB = 0x15;
}

/*********************************/

	.area ram
	_SquareLSB::.blkw 1;

.text

_ASMSine::
	ldi 	r24,_SquareLSB;





More information about the Icc-avr mailing list