Are high() and low() built into MPLAB or are they your own macros?
Hey Mr. RB,
They are macros, high will capture the MSByte of a 16bit address and low will capture the LSByte. One handy use is to store the PCLATH value of a label by using the "high".
Roman, there's also an 'upper()' operator to capture the b23..b16 portion of the constant operand. So, a matched set of sorts for setting TBLPTRL, H, and U (grin)...
Have fun, Mike
Last edited by Mike, K8LH; 25th September 2009 at 11:10 PM.