libgambatte: minor fixme/todo

This commit is contained in:
sinamas 2019-05-13 22:48:02 +02:00
parent b6ff2f24c1
commit dffa1523fb

View File

@ -129,6 +129,8 @@ void Tima::setTac(unsigned const data, unsigned long const cc, TimaInterruptRequ
updateIrq(cc, timaIrq);
updateTima(cc);
// FIXME: this looks naive.
// TODO: more TIMA tests.
lastUpdate_ -= (1u << (timaClock[tac_ & 3] - 1)) + 3;
tmatime_ -= (1u << (timaClock[tac_ & 3] - 1)) + 3;
nextIrqEventTime -= (1u << (timaClock[tac_ & 3] - 1)) + 3;