I have some old Macs that I would like to remove their clock batteries so that I don't have to worry about them leaking and destroying logic boards. That being said I do want to operate them from time to time.
I've been toying around with the idea of writing a system extension to address some of the issues that come from having no battery in a Mac. In fact, I've already gotten started.
My goal is to create a system extension that detects if the date is set to something prior to 2016, and pops up a dialog on startup asking for the time and date. I would install this on 68k machines from the SE onward. So I'm shooting for System 6 compatibility.
I've purchased a copy of Inside Macintosh (volumes I through VI) on amazon and I've managed to write a program that opens a dialog asking for the time and date, which in turn sets the system clock and then quits. I could drop this in the startup folder but I REALLY want to do this as a system extension. I've managed to convert it to an INIT resource but when it runs on startup it just bombs and I have to disable it (bus error).
My understanding is that a bus error happens when a pointer points to an address outside of the available memory. so this has something to do with the system environment during startup. Does anyone know what I should do to debug this?