This is the same code as before, but on this occasion, I've saved the contents of the A, X and Y registers in memory immediately before each OSBYTE 151 call to write to the user port, and immediately after OSBYTE 150 which reads from the user port.
Click here to return to Read RTC