jcrona / tamalib

A hardware agnostic Tamagotchi P1 emulation library
GNU General Public License v2.0
165 stars 17 forks source link

Export tick counter in CPU state #2

Closed cscott closed 3 years ago

cscott commented 3 years ago

Otherwise we do a flurry of tick increments after a state is loaded to catch up to the stored timer tick values, because clk_timer_timestamp and prog_timer_timestamp are stored relative to tick_counter but the tick_counter is not saved.

jcrona commented 3 years ago

Good catch, tick_counter needs to be exported indeed, so I'm merging this one !