Timers are now 64-bit.

This commit is contained in:
OBattler
2017-10-09 01:48:36 +02:00
parent 08bf9109d7
commit 02bbfb26eb
67 changed files with 508 additions and 499 deletions

View File

@@ -40,10 +40,11 @@ typedef struct tandy_t
int sc, vc;
int dispon;
int con, coff, cursoron, blink;
int vsynctime, vadj;
int64_t vsynctime;
int vadj;
uint16_t ma, maback;
int dispontime, dispofftime, vidtime;
int64_t dispontime, dispofftime, vidtime;
int firstline, lastline;
int composite;
@@ -184,8 +185,8 @@ void tandy_recalctimings(tandy_t *tandy)
_dispofftime = disptime - _dispontime;
_dispontime *= CGACONST;
_dispofftime *= CGACONST;
tandy->dispontime = (int)(_dispontime * (1 << TIMER_SHIFT));
tandy->dispofftime = (int)(_dispofftime * (1 << TIMER_SHIFT));
tandy->dispontime = (int64_t)(_dispontime * (1 << TIMER_SHIFT));
tandy->dispofftime = (int64_t)(_dispofftime * (1 << TIMER_SHIFT));
}
void tandy_poll(void *p)