Plasma Mon Sep 23 2024 at 10:51 pm DOSBox does not implement CLOCK$
I guess no games used it, and DOSBox developers only care about games...
If you have real MS-DOS, you can read/write to it to get/set the date and time.
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5
┌────────┬────────┬─────────┬────────┬────────┬─────────┐
│ │ │ │ │ │ │
│days since 1-1-80│ minutes │ hours │ sec/100│ seconds │
│low byte|hi byte │ │ │ │ │
└─────────────────┴─────────┴────────┴────────┴─────────┘
There is really no need for this with QB though, since you can use the DATE$ and TIME$ functions. I believe those functions call int 21 directly (ah=2A,2B,2C,2D) so they should work in any DOS including DOSBox.
|