1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Added a basic cycle skipper plus some notes.

This commit is contained in:
Thomas Harte 2016-10-30 22:39:47 -04:00
parent 1333a42a78
commit 33512988fb

View File

@ -40,6 +40,21 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
{
if(address >= 0xc000)
{
// // 024D = 0 => fast; otherwise slow
// // E6C9 = read byte: return byte in A
// if(address == 0xe6c9 && operation == CPU6502::BusOperation::ReadOpcode)
// {
// printf(".");
// }
if(address == 0xe720 && operation == CPU6502::BusOperation::ReadOpcode)
{
while(!_via.tape->get_input())
{
_via.run_for_cycles(1);
_via.tape->run_for_cycles(1);
}
}
if(isReadOperation(operation)) *value = _rom[address&16383];
}
else