On Tuesday 04 November 2003 10:55, [email protected] wrote:
> Hi,
>
> i have a problem compiling a asm line.
>
> u8 g_aucPara[ 128 ] = { 0 };
> ...
> asm( "mov &0x0202, %0(r6)":: "m" (*g_aucPara) );
g_aucPara _MUST_ be a constant addressof here.
>
> 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
--
/*****************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ.
(_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314
*****************************************************************/