mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-05 04:37:41 +00:00
Merge pull request #925 from TomHarte/ZXROMSpeed
Corrects timing error in Spectrum 48kb and 128kb ROM accesses.
This commit is contained in:
commit
30a1a53c97
@ -27,7 +27,7 @@ struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<
|
||||
Plus3,
|
||||
);
|
||||
|
||||
Model model = Model::Plus2a;
|
||||
Model model = Model::Plus2;
|
||||
bool should_hold_enter = false;
|
||||
|
||||
Target(): Analyser::Static::Target(Machine::ZXSpectrum) {
|
||||
|
@ -717,9 +717,9 @@ template<Model model> class ConcreteMachine:
|
||||
|
||||
void set_memory(int bank, uint8_t source) {
|
||||
if constexpr (model >= Model::Plus2a) {
|
||||
is_contended_[bank] = (source >= 4 && source < 8);
|
||||
is_contended_[bank] = source >= 4 && source < 8;
|
||||
} else {
|
||||
is_contended_[bank] = source & 1;
|
||||
is_contended_[bank] = source < 0x80 && source & 1;
|
||||
}
|
||||
pages_[bank] = source;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user