Cheers mackrackit, I was pretty close then-ish.
I think I've got the whole sequence now:
INTCON REG bit 3 set to 1 enables the INTCON REG flag bit 0. Bit 0 changes 'flags' when a button is pressed which is controlled by ( IOC = %00011000 - the buttons in effect)
It was this line from the program that threw me:
I originally thought that if no buttons were down then INTCON.0 = 0 so there was no flag to clear but on reading Bruce's:Code:INTCON.0 = 0 ' No buttons down, so clear int on change flagmade me think it must be set to '1'.' No buttons down, so clear int on change flag
Thanks for the explanation.
Dave





Bookmarks