mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-27 15:29:34 +00:00
Yamaha fetches don't require an outer switch.
This commit is contained in:
parent
020d9604c6
commit
555d883227
@ -236,17 +236,17 @@ void TMS9918<personality>::run_for(const HalfCycles cycles) {
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if constexpr (is_yamaha_vdp(personality)) {
|
||||||
|
fetch(this->template fetch_yamaha, Clock::Internal, Storage<personality>::vertical_offset_);
|
||||||
|
} else {
|
||||||
switch(line_buffer.fetch_mode) {
|
switch(line_buffer.fetch_mode) {
|
||||||
case FetchMode::Text: fetch(this->template fetch_tms_text, Clock::TMSMemoryWindow, 0); break;
|
case FetchMode::Text: fetch(this->template fetch_tms_text, Clock::TMSMemoryWindow, 0); break;
|
||||||
case FetchMode::Character: fetch(this->template fetch_tms_character, Clock::TMSMemoryWindow, 0); break;
|
case FetchMode::Character: fetch(this->template fetch_tms_character, Clock::TMSMemoryWindow, 0); break;
|
||||||
case FetchMode::SMS: fetch(this->template fetch_sms, Clock::TMSMemoryWindow, 0); break;
|
case FetchMode::SMS: fetch(this->template fetch_sms, Clock::TMSMemoryWindow, 0); break;
|
||||||
case FetchMode::Refresh: fetch(this->template fetch_tms_refresh, Clock::TMSMemoryWindow, 0); break;
|
case FetchMode::Refresh: fetch(this->template fetch_tms_refresh, Clock::TMSMemoryWindow, 0); break;
|
||||||
|
|
||||||
case FetchMode::Yamaha:
|
default: break;
|
||||||
if constexpr (is_yamaha_vdp(personality)) {
|
|
||||||
fetch(this->template fetch_yamaha, Clock::Internal, Storage<personality>::vertical_offset_);
|
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef fetch
|
#undef fetch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user