mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-25 11:17:26 +00:00
Imported the ZX80 and 81 system ROMs (though not publicly), added enough code to post their contents into C++ world.
This commit is contained in:
@@ -775,7 +775,10 @@ template <class T> class Processor {
|
||||
while(bus_request_line_) {
|
||||
static MachineCycle bus_acknowledge_cycle = {BusOperation::BusAcknowledge, 1};
|
||||
number_of_cycles_ -= static_cast<T *>(this)->perform_machine_cycle(bus_acknowledge_cycle) + 1;
|
||||
if(!number_of_cycles_) return;
|
||||
if(!number_of_cycles_) {
|
||||
flush();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
while(!bus_request_line_) {
|
||||
@@ -790,7 +793,7 @@ template <class T> class Processor {
|
||||
|
||||
switch(operation->type) {
|
||||
case MicroOp::BusOperation:
|
||||
if(number_of_cycles_ < operation->machine_cycle.length) { scheduled_program_counter_--; return; }
|
||||
if(number_of_cycles_ < operation->machine_cycle.length) { scheduled_program_counter_--; flush(); return; }
|
||||
number_of_cycles_ -= operation->machine_cycle.length;
|
||||
last_request_status_ = request_status_;
|
||||
number_of_cycles_ -= static_cast<T *>(this)->perform_machine_cycle(operation->machine_cycle);
|
||||
|
||||
Reference in New Issue
Block a user