hi, thanks for the reply, but code space is the least of my worries. the main this is making sure that the portD is set up correctly before the ALE! and WR! signals are made LOW. At least that is what I think my problem might be


srig