mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Eliminate speculative apply_mapping
.
This commit is contained in:
parent
eb51ff5cdf
commit
a5b9bdc18c
@ -633,9 +633,11 @@ class ConcreteMachine:
|
||||
break;
|
||||
}
|
||||
|
||||
// TODO: Propagate to all handlers.
|
||||
|
||||
// Apply to RAM.
|
||||
//
|
||||
// On a real MSX this may also affect other slots.
|
||||
// I've not yet needed it to propagate further, so
|
||||
// have not implemented any onward route.
|
||||
const uint16_t region = uint16_t((port - 0xfc) << 14);
|
||||
const size_t base = size_t(*cycle.value) << 14;
|
||||
if(base < RAMSize) {
|
||||
|
@ -129,10 +129,6 @@ class MemorySlotHandler {
|
||||
/*! Seeks the result of a read at @c address; this is used only if the area is unmapped. */
|
||||
virtual uint8_t read([[maybe_unused]] uint16_t address) { return 0xff; }
|
||||
|
||||
/// Sets the value most-recently written to one of the standard
|
||||
/// memory mapping ports, FC–FF.
|
||||
virtual void apply_mapping([[maybe_unused]] uint8_t port, [[maybe_unused]] uint8_t value) {}
|
||||
|
||||
/*! @returns The probability that this handler is correct for the data it owns. */
|
||||
float get_confidence() {
|
||||
return confidence_counter_.get_confidence();
|
||||
|
Loading…
Reference in New Issue
Block a user