fix various bugs with 4502 assembly.