In message <199703251959.NAA23125@dfw-ix5.ix.netcom.com> PICLIST@MITVMA.MIT.EDU writes: > Mayes uk wrote: > > > If I declare a constant with more than 2 bytes, is it possible > > to access the middle bytes? > > > > Example: > > > > MyConst equ h'01020304' > > > > movlw ???? (MyConst) ;how do I access the 3rd byte??? > > Mike: > > MOVLW ((MYCONST) >> 8) & 0xFF > > It's probably easiest if you use parameterized #DEFINEs to define > the shift-and-AND operations for each byte-position... Then you can > just say: > > MOVLW LSB2(MYCONT) > > or whatever. > > By the way, it's best to use shift-and-AND macros instead of LOW and > HIGH... In at least some versions of M > Thanks for the reply, Andy. One phrase I didn't understand was "parameterized #DEFINEs". Can you give me an example? Regards, Mike