I don't no anything about C18, but C compilers that compile directly to object code generally do _not_ permit normal assembly directives and pseduops. On the other hand, they _do_ often support C syntax for operands. For example, instead of low(FOO) you might be able to use FOO & 0xFF high(FOO) becomes (FOO >> 8) & 0xFF etc. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: Andrew E. Kalman To: Sent: Sunday, September 17, 2000 2:42 AM Subject: [PIC] MPLAB-CXX in-line assembly question > Hi All. > > In MPLAB-CXX one can do in-line assembly like: > > ... > _asm > retlw 0 > _endasm > ... > > Is it possible to do anything other than the processor's native > instructions? I.e. are assembler _directives_ supported between _asm > and _endasm? > > I'm using MPLAB-C18 and not only does it reject my attempts to use > directives like global and high and operations like (labelname >> 8), > but it even rejects my use of $! > > Anybody up on this? > > Thanks, > > > -- > > ______________________________________ > Andrew E. Kalman, Ph.D. aek@netcom.com > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST