VIC-20 Real Time Clock in VICE

A real time clock for a VIC-20? Why not!

If you set up the D12C887 at $9800 then this code will work:

The beauty of this is that you could program a BBS to use this. The internal RTC gets messed up when either the tape or disk storage units are accessed - so using the D12C887 provides a separate, accurate clock with which to tag things like messages and files. Obviously, it does not worry about dates - but that could easily be accommodated by a subsystem.