game-and-watch-retro-go icon indicating copy to clipboard operation
game-and-watch-retro-go copied to clipboard

Use the RTC for timekeeping in emulators

Open kbeckmann opened this issue 3 years ago • 3 comments

This would be for gb in particular.

Will probably also need some GUI to set the date/time.

kbeckmann avatar Jul 26 '21 21:07 kbeckmann

GUI to set the RTC time was implemented in the STM32 RTC patchset that was merged to 'main'. Getting the RTC functionality to work proper with GB emulator would likely require SRAM saving to be implemented first. The RTC patchset has an exported function that can be used to return a 64-bit Unix timestamp, which could be useful when implementing RTC support to the GB emulator. Here is useful documentation about the RTC save format in GB: https://bgb.bircd.org/rtcsave.html

northskysl avatar Aug 14 '21 21:08 northskysl

@northskysl Do you want to look into the SRAM saving? If not, I could take a stab at it.

kbeckmann avatar Aug 14 '21 22:08 kbeckmann

@kbeckmann I do not have the needed time currently, but it would be great if you could take a look! This would be a nice feature to have

northskysl avatar Aug 14 '21 22:08 northskysl