[Icc-mot] Inline asm quirks

Gene Norris genenorris at spotengineering.com
Mon Mar 26 09:39:58 PST 2007


Richard,

Using v7.02...

Local data used in inline assembly goes wrong when address calculation 
is required. The simplest example follows:

;       asm("   adcb   %data[3]");
	   adcb   26,S[3]

Any pointer variable generates similar output, where the value is added 
to the stack pointer reference rather than the offset.

;       asm("   adcb   %data_ptr->uc[1]");
	   adcb   9,S->uc[1]


-- 
Gene Norris
Chief Engineer

SPOT Engineering, Inc.
1261 Campground Road
Lancaster, Ohio 43130
740.654.0880
FAX.654.0889

http://www.spotengineering.com/



More information about the Icc-mot mailing list