In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Peter, Nice work! I'm not a real user of macros with the SX (sorry James) so I had to check the manual to see what was going on with your code. Clever stuff. Apparently, the fine folks who originally wrote SASM must have encountered a similar circumstance to Mark. Here's what the manual says (and for those who want to play along at home, it's on page 63) : [b]The syntax for the LOCAL directive is LOCAL