1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 02:22:39 +00:00

Template the TMS on its personality.

Template parameter currently unused, but preparatory to other improvements.
This commit is contained in:
Thomas Harte
2022-12-31 15:08:33 -05:00
parent d79aac3081
commit 7d6eac2895
5 changed files with 43 additions and 19 deletions
+2 -1
View File
@@ -431,6 +431,7 @@ class ConcreteMachine:
}
private:
// TODO: incorporate this into the VDP declaration.
static TI::TMS::Personality tms_personality_for_model(Analyser::Static::Sega::Target::Model model) {
switch(model) {
default:
@@ -485,7 +486,7 @@ class ConcreteMachine:
const Target::Region region_;
const Target::PagingScheme paging_scheme_;
CPU::Z80::Processor<ConcreteMachine, false, false> z80_;
JustInTimeActor<TI::TMS::TMS9918> vdp_;
JustInTimeActor<TI::TMS::TMS9918<TI::TMS::Personality::SMSVDP>> vdp_; // TODO.
Concurrency::AsyncTaskQueue<false> audio_queue_;
TI::SN76489 sn76489_;