• Please review our updated Terms and Rules here

RTC Clock setting on Heath/Zenith Z-148 PC

I have solved the problem up to a point, making a device driver still seems daunting at this stage.

OK - for future posterity, link to the github
heath-zenith-logo.jpg
Attached here is my Clock Code - Written in GW basic...

clk.bas - runs from my autoexec.bat to sync the dos clock to the hardware clock.
You need to have the GWBASIC file on your disk. I did not try with QBASIC, BASIC or BASICA yet.
This works, but it is slow to load the GWBASIC interpreter from floppy at boot time, it runs, sets the clock and then exits to dos.
this program is 30 lines. Not sure if I could compile to an EXE or COM ?

The Autoexec.bat line reads :
GWBASIC CLK.BAS

clock.bas - is used for setting the clock for the first time after you give it a new coin cell.
this program is not well optimized - needs tidying up.
the registers are set from minutes to decades.
 

Attachments

  • CLK.zip
    985 bytes · Views: 2
  • CLOCK.zip
    2.1 KB · Views: 2
That volume name "MINI_WIN_C" puzzled me until I realized that "Winchester" was Zenith's preferred name for a hard drive, and it's likely a MiniScribe drive, assigned to letter C.
 
Back
Top