Corrected set/clearPixel argument. Removed some unused '.DEF's . Moved macro definitions from outside '.DSEG' and cleaned some TEMP code.