Finish clean up of the 6502 code.