mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Removes temporary work.
This commit is contained in:
parent
266310d9c2
commit
9a0022cfcb
@ -94,8 +94,6 @@ class ConcreteMachine:
|
|||||||
page<3>(0x00);
|
page<3>(0x00);
|
||||||
}
|
}
|
||||||
|
|
||||||
int halves = 0;
|
|
||||||
|
|
||||||
// MARK: - Z80::BusHandler.
|
// MARK: - Z80::BusHandler.
|
||||||
forceinline HalfCycles perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
|
forceinline HalfCycles perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
|
||||||
using PartialMachineCycle = CPU::Z80::PartialMachineCycle;
|
using PartialMachineCycle = CPU::Z80::PartialMachineCycle;
|
||||||
@ -104,14 +102,11 @@ class ConcreteMachine:
|
|||||||
// TODO: possibly apply an access penalty.
|
// TODO: possibly apply an access penalty.
|
||||||
|
|
||||||
|
|
||||||
halves += cycle.length.as<int>();
|
|
||||||
if(nick_ += cycle.length) {
|
if(nick_ += cycle.length) {
|
||||||
const auto nick = nick_.last_valid();
|
const auto nick = nick_.last_valid();
|
||||||
const bool nick_interrupt_line = nick->get_interrupt_line();
|
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_) {
|
if(nick_interrupt_line && !previous_nick_interrupt_line_) {
|
||||||
printf("Interrupt after %d\n", halves + nick_.last_sequence_point_overrun().as<int>());
|
// TODO: apply interrupt.
|
||||||
halves = - nick_.last_sequence_point_overrun().as<int>();
|
|
||||||
}
|
}
|
||||||
previous_nick_interrupt_line_ = nick_interrupt_line;
|
previous_nick_interrupt_line_ = nick_interrupt_line;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user