1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-29 00:29:34 +00:00

Eliminate speculative apply_mapping.

This commit is contained in:
Thomas Harte 2023-01-16 11:53:04 -05:00
parent eb51ff5cdf
commit a5b9bdc18c
2 changed files with 4 additions and 6 deletions

View File

@ -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) {

View File

@ -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, FCFF.
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();