Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

All aspects of programming on the Commander X16.
Post Reply
User avatar
schristis
Posts: 63
Joined: Sat Apr 08, 2023 6:28 am

Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Post by schristis »

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
User avatar
ahenry3068
Posts: 1131
Joined: Tue Apr 04, 2023 9:57 pm

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Post by ahenry3068 »

schristis 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
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 schristis
User avatar
ahenry3068
Posts: 1131
Joined: Tue Apr 04, 2023 9:57 pm

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Post by ahenry3068 »

Python would work too. But I'm not really a Python guy.
User avatar
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

Post by JimmyDansbo »

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
User avatar
schristis
Posts: 63
Joined: Sat Apr 08, 2023 6:28 am

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Post by schristis »

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....
Post Reply