Files
Work/image/HARDWARE.CPP
2024-08-07 09:16:27 -04:00

20 lines
824 B
C++

#include <image/hardware.hpp>
Hardware::operator String(void)const
{
if(CPUUnknown==cpuType())return "CPU_UNKNOWN";
else if(CPU80386==cpuType())return "CPU_80386";
else if(CPU80486==cpuType())return "CPU_80486";
else if(CPU80586==cpuType())return "CPU_80586";
else if(CPUMIPSR3000==cpuType())return "CPU_MIPS_R3000";
else if(CPUMIPSMARKII==cpuType())return "CPU_MIPS_MARKII";
else if(CPUMIPSMARKIII==cpuType())return "CPU_MIPS_MARKIII";
else if(CPUMIPSR4000==cpuType())return "CPU_MIPS_R4000";
else if(CPUDECALPHAAXP==cpuType())return "CPU_DEC_ALPHA_AXP";
else if(CPUPOWERPC==cpuType())return "CPU_POWERPC";
else if(CPUMOTOROLA68000==cpuType())return "CPU_MOTOROLA_68000";
else if(CPUPARISC==cpuType())return "CPU_PA_RISC";
else if(CPUMIPS10000==cpuType())return "CPU_MIPS-10000";
else return "*********";
}