HACK: Fix non-functional RTC by reverting code

This commit is contained in:
InvisibleUp 2020-04-30 21:22:28 -04:00
parent 1b31b614d2
commit c03084ea30

View File

@ -155,6 +155,16 @@ const DevMethods_t DEVICES[] = {
.timebegin = EmVIA2 ? VIA2_ExtraTimeBegin : NULL,
.timeend = EmVIA2 ? VIA2_ExtraTimeEnd : NULL,
},
// Screen
{
.init = NULL,
.reset = NULL,
.starttick = Sixtieth_PulseNtfy, // VBlank interrupt
.endtick = Screen_EndTickNotify,
.subtick = NULL,
.timebegin = NULL,
.timeend = NULL,
},
// Sony disk drive
{
.init = NULL,
@ -234,16 +244,6 @@ const DevMethods_t DEVICES[] = {
.timebegin = NULL,
.timeend = NULL,
},
// Screen
{
.init = NULL,
.reset = NULL,
.starttick = Sixtieth_PulseNtfy, // VBlank interrupt
.endtick = Screen_EndTickNotify,
.subtick = NULL,
.timebegin = NULL,
.timeend = NULL,
},
// ASC
{
.init = NULL,
@ -335,12 +335,28 @@ LOCALPROC SubTickTaskEnd(void)
LOCALPROC SixtiethSecondNotify(void)
{
int i;
/*int i;
// Begin new frame
InterruptReset_Update();
for ( i = 0; i < ARRAY_SIZE(DEVICES); i++ ) {
if (DEVICES[i].starttick != NULL) { DEVICES[i].starttick(); }
}
}*/
// Temporary fix to non-functional RTC
Mouse_Update();
InterruptReset_Update();
if (EmClassicKbrd) { KeyBoard_Update(); }
if (EmADB) { ADB_Update(); }
Sixtieth_PulseNtfy(); /* Vertical Blanking Interrupt */
Sony_Update();
#if EmLocalTalk
LocalTalkTick();
#endif
if (EmRTC) { RTC_Interrupt(); }
if (EmVidCard) { Vid_Update(); }
SubTickTaskStart();
}