Hi, i have a problem compiling a asm line.
u8 g_aucPara[ 128 ] = { 0 };
...
asm( "mov &0x0202, %0(r6)":: "m" (*g_aucPara) );
Compile to:
11c4: 92 42 02 02 mov &0x0202,&0x0204 ;0x0202
11c8: 04 02
The code doun't use register R6.
The following line is korect compiled.
asm( "mov &0x0202,516(r6)":: );
Compile to:
11c4: 96 42 02 02 mov &0x0202,516(r6) ;0x0202
11c8: 04 02
Who knows how to change the upper line so that register R6 is used.
Thanks
Dirk
