mirror of
https://github.com/TomHarte/CLK.git
synced 2025-03-27 04:29:45 +00:00
Adds guaranteed trip to ROM for vector pulls.
This commit is contained in:
parent
46c1c9b5ee
commit
acaa841822
@ -195,7 +195,11 @@ class ConcreteMachine:
|
||||
static uint64_t total = 0;
|
||||
bool is_1Mhz = (region.flags & MemoryMap::Region::Is1Mhz) || !(speed_register_ & 0x80) || (speed_register_ & motor_flags_);
|
||||
|
||||
if(region.flags & MemoryMap::Region::IsIO) {
|
||||
if(operation == CPU::WDC65816::BusOperation::ReadVector) {
|
||||
// I think vector pulls always go to ROM?
|
||||
// That's slightly implied in the documentation, and doing so makes GS/OS boot, so...
|
||||
*value = rom_[rom_.size() - 65536 + address];
|
||||
} else if(region.flags & MemoryMap::Region::IsIO) {
|
||||
// Ensure classic auxiliary and language card accesses have effect.
|
||||
const bool is_read = isReadOperation(operation);
|
||||
memory_.access(uint16_t(address), is_read);
|
||||
|
Loading…
x
Reference in New Issue
Block a user