1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Switched to a ROM trap for typing.

This commit is contained in:
Thomas Harte 2016-11-03 22:21:05 -04:00
parent 8c70dc5891
commit a7e4c0c3b5
2 changed files with 2 additions and 9 deletions

View File

@ -79,14 +79,9 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
}
}
// if(_typer && operation == CPU6502::BusOperation::ReadOpcode && address == 0xEE22)
// {
// if(!_typer->type_next_character())
// _typer.reset();
// }
if(_typer)
if(_typer && operation == CPU6502::BusOperation::ReadOpcode && address == 0xF495)
{
_typer->update(1);
if(!_typer->type_next_character()) _typer.reset();
}
_via.run_for_cycles(1);

View File

@ -89,8 +89,6 @@ class Machine:
// for Utility::TypeRecipient
virtual bool typer_set_next_character(Utility::Typer *typer, char character, int phase);
virtual int get_typer_delay() { return _typer_delay; }
virtual int get_typer_frequency() { return 40000; }
private:
// RAM and ROM