1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Removes temporary work.

This commit is contained in:
Thomas Harte 2021-06-18 18:44:07 -04:00
parent 266310d9c2
commit 9a0022cfcb

View File

@ -94,8 +94,6 @@ class ConcreteMachine:
page<3>(0x00);
}
int halves = 0;
// MARK: - Z80::BusHandler.
forceinline HalfCycles perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
using PartialMachineCycle = CPU::Z80::PartialMachineCycle;
@ -104,14 +102,11 @@ class ConcreteMachine:
// TODO: possibly apply an access penalty.
halves += cycle.length.as<int>();
if(nick_ += cycle.length) {
const auto nick = nick_.last_valid();
const bool nick_interrupt_line = nick->get_interrupt_line();
// TEMPORARY. The below should print a bunch of numbers like 15988 on the Enterprise splash screen.
if(nick_interrupt_line && !previous_nick_interrupt_line_) {
printf("Interrupt after %d\n", halves + nick_.last_sequence_point_overrun().as<int>());
halves = - nick_.last_sequence_point_overrun().as<int>();
// TODO: apply interrupt.
}
previous_nick_interrupt_line_ = nick_interrupt_line;
}