1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Eliminates the 6502's specialised jam handler in favour of the generic trap handler, and simplifies the lookup costs of that as it's otherwise doubling execution costs.

This commit is contained in:
Thomas Harte
2017-06-03 21:54:42 -04:00
parent fd6623b5a5
commit b642d9f712
5 changed files with 23 additions and 43 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ using namespace CPU;
AllRAMProcessor::AllRAMProcessor(size_t memory_size) :
memory_(memory_size),
traps_(memory_size, false),
timestamp_(0) {}
void AllRAMProcessor::set_data_at_address(uint16_t startAddress, size_t length, const uint8_t *data) {
@@ -33,5 +34,5 @@ void AllRAMProcessor::set_trap_handler(TrapHandler *trap_handler) {
}
void AllRAMProcessor::add_trap_address(uint16_t address) {
trap_addresses_.insert(address);
traps_[address] = true;
}