Thanks for this - the routine is great. Just a few questions as I have not used macros before. 1 When called by wait x,0 what is the 0? 2 What is the maximum delay supported? 3 Is the clock frequency variable the only one you need in your main program? 4 Where should the includes go and in what order? 5 Does anything need to be said to say that wait is a macro? 6 Are any variables needed in a header? Thanks and a happy christmas Tim At 10:20 20/12/96 +0000, you wrote: >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 >