Tim, Try looking at the code for my PC keyboard viewer - KEYBVIEW.ZIP - the files you'd require are wait.mac & delay.asm and for examples of how to use, lm032lhi.asm You can find the code on:- http://ourworld.compuserve.com/homepages/steve_lawther/ucindex.htm hope this helps, Steve Lawther *** All opinions are my own, not any employers, nor clients *** >Tim Kerby wrote:- >Does anyone know any good delay routines for the 16c84 and 16c74? >I want to be able to enter a value for the clock speed (usually 4MHz, 10MHz >and 20MHz) and the routine will adapt to the speed. It must function as a >subroutine taking the value in the w register as a delay in mS and then >delay that amount of time.