1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-23 01:16:10 +00:00
Files
CLK/Machines/PCCompatible/ProcessorByModel.hpp
2025-03-04 17:08:49 -05:00

24 lines
567 B
C++

//
// ProcessorByModel.hpp
// Clock Signal
//
// Created by Thomas Harte on 04/03/2025.
// Copyright © 2025 Thomas Harte. All rights reserved.
//
#pragma once
#include "Analyser/Static/PCCompatible/Target.hpp"
#include "InstructionSets/x86/Model.hpp"
namespace PCCompatible {
constexpr InstructionSet::x86::Model processor_model(Analyser::Static::PCCompatible::Model model) {
switch(model) {
default: return InstructionSet::x86::Model::i8086;
case Analyser::Static::PCCompatible::Model::AT: return InstructionSet::x86::Model::i80286;
}
}
}