spiritualized1997 / openFPGA-GB-GBC

Game Boy and Game Boy Color cores for openFPGA on Analogue Pocket
545 stars 6 forks source link

rtc #8

Open DR-Soaps opened 2 years ago

DR-Soaps commented 2 years ago

rtc is not working after first start

kresp0 commented 2 years ago

Partial RTC support have been added to the openFPGA 1.1 beta 6.

It would be nice if this core added support for RTC.

Guzaboru commented 2 years ago

Hopefully we will get the real time clock for gbc and gba sometime.

dannenberg commented 2 years ago

i too noticed this and would be excited to see it added/working

zenzoa commented 1 year ago

I would love this! I'm working on a virtual pet for the gameboy, and having RTC support would mean being able to have idle-game elements.

LeeNeighoff commented 1 year ago

+1 for RTC support now that it's available to openFPGA cores.

DunhamGitHub commented 1 year ago

+1 for RTC support now that it's available to openFPGA cores.

Can you elaborate "now that it's available to openFPGA cores"? I have not seen any update from Analogue's side🧏🏼‍♀️

kresp0 commented 1 year ago

Can you elaborate "now that it's available to openFPGA cores"? I have not seen any update from Analogue's side🧏🏼‍♀️

Partial support was added on November 2022 to openFPGA 1.1 beta 6:

Cores get notified of the current Pocket date and time when they start

DunhamGitHub commented 1 year ago

Can you elaborate "now that it's available to openFPGA cores"? I have not seen any update from Analogue's side🧏🏼‍♀️

Partial support was added on November 2022 to openFPGA 1.1 beta 6:

Cores get notified of the current Pocket date and time when they start

Fair enough. May I kindly point out that "manually changing the in game clock" can simply be patched into the ROM (walk up to the clock inside every Pokecenter and just change the time)... 99.9% of games (other than Pokémon) don't use RTC so I can guess this is not a priority at all...

ninbura commented 1 year ago

Specifically the GETTIME method.

Added Chip32 instruction GETTIME

From my understanding agg added rtc to his snes core.

If this does end up getting some development time, might I suggest trying to replicate the RTC functionality that EZ-Flash flash carts have. From what I can tell, upon launching a game; the difference between the last recorded timestamp and the current timestamp is calculated. After which new RTC data is injected to account for time passed since the game was last run. Ultimately, this allows for RTC to function in a natural way even with the use of save states and sleep (which is just save states in disguise).

Here's an example of this in action.