I don't want to set the time & date with the Emulator anymore...
Just wondering if any1 has a solution !
I want to figure out if there was anyway I could start the emulator, and have the time and date (TI$ & DA$ automatically set.)
I know I can set TI$ &TA$ to a specific, "incorrect" setting when AUTOBOOT.X16 runs a program to start the RTC...
Could the BATCH file, write the Time & Date to a file for, or too AUTOBOOT.X16 ?
I'm sure in MS-DOS that you can get the time and date and write to a file....
I just want to know if any1 can do it or has done it ??? It would be really handy....
Best regards
Shaun
Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator
- ahenry3068
- Posts: 1132
- Joined: Tue Apr 04, 2023 9:57 pm
Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator
Sounds completely doable. Though I would use QB64PE instead of a batch file. I may try to throw something together when I get home this evening. Good idea schristisschristis wrote: ↑Mon Sep 02, 2024 11:53 am I don't want to set the time & date with the Emulator anymore...
Just wondering if any1 has a solution !
I want to figure out if there was anyway I could start the emulator, and have the time and date (TI$ & DA$ automatically set.)
I know I can set TI$ &TA$ to a specific, "incorrect" setting when AUTOBOOT.X16 runs a program to start the RTC...
Could the BATCH file, write the Time & Date to a file for, or too AUTOBOOT.X16 ?
I'm sure in MS-DOS that you can get the time and date and write to a file....
I just want to know if any1 can do it or has done it ??? It would be really handy....
Best regards
Shaun
- ahenry3068
- Posts: 1132
- Joined: Tue Apr 04, 2023 9:57 pm
Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator
Python would work too. But I'm not really a Python guy.
- JimmyDansbo
- Posts: 476
- Joined: Sun Apr 26, 2020 8:10 pm
- Location: Denmark
- Contact:
Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator
I am not sure if I am missing something, but if you start the emulator with -rtc, the TI$ and DA$ variables will be set to the values of the launching computer... I.E. the internal clock of the emulator will be set correctly.
Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator
JimmyDansbo wrote: ↑Mon Sep 02, 2024 2:38 pm I am not sure if I am missing something, but if you start the emulator with -rtc, the TI$ and DA$ variables will be set to the values of the launching computer... I.E. the internal clock of the emulator will be set correctly.
Ohh That works "YAY" Thankyou !!! No Complicated Batch file stuff lol
I've seen some switches to start the emulator.. but I haven't known of the -RTC switch....