Skip to content

Commit

Permalink
INT8 counter should count Interrupt activations and not PIT counter (…
Browse files Browse the repository at this point in the history
…which runs backward)
  • Loading branch information
kevinferrare committed Jan 21, 2024
1 parent 894e673 commit d186340
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public TimerInt8Handler(IMemory memory, Cpu cpu, DualPic dualPic, Timer timer, B

/// <inheritdoc />
public override void Run() {
long numberOfTicks = _timer.NumberOfTicks;
TickCounterValue = (uint)numberOfTicks;
TickCounterValue++;
_dualPic.AcknowledgeInterrupt(0);
}

Expand Down

0 comments on commit d186340

Please sign in to comment.