Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Use the RTC for timekeeping in emulators #116

Open
kbeckmann opened this issue Jul 26, 2021 · 3 comments
Open

Use the RTC for timekeeping in emulators #116

kbeckmann opened this issue Jul 26, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@kbeckmann
Copy link
Owner

This would be for gb in particular.

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

@kbeckmann kbeckmann added the enhancement New feature or request label Jul 26, 2021
@northskysl
Copy link
Contributor

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

@kbeckmann
Copy link
Owner Author

kbeckmann commented Aug 14, 2021

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

@northskysl
Copy link
Contributor

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants