assembler version of calibrateoscillator - 1952 bytes

still needs cleaning up