1
0
Fork 0

Add entry for CLTS instruction

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1585
This commit is contained in:
Sjoerd van der Berg 2004-01-14 17:19:43 +00:00
parent 33d5b78c13
commit e5cf2a9b40
3 changed files with 8 additions and 5 deletions

View file

@ -526,6 +526,9 @@ l_M_Ed:
LEAVECORE;
CPU_HLT(IPPoint-inst.opcode_start);
return CBRET_NONE;
case D_CLTS:
//TODO Really clear it sometime
goto nextopcode;
default:
LOG(LOG_CPU,LOG_ERROR)("LOAD:Unhandled code %d opcode %X",inst.code.load,inst.entry);
break;

View file

@ -184,7 +184,7 @@ static OpCode OpCodeTable[1024]={
{L_MODRM ,O_GRP6w ,S_Ew ,M_Ew },{L_MODRM ,O_GRP7w ,S_Ew ,M_Ew },
{L_MODRM ,O_LAR ,S_Gw ,M_Ew },{L_MODRM ,O_LSL ,S_Gw ,M_Ew },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{D_CLTS ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
/* 0x108 - 0x10f */
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
@ -540,7 +540,7 @@ static OpCode OpCodeTable[1024]={
{L_MODRM ,O_GRP6d ,S_Ew ,M_Ew },{L_MODRM ,O_GRP7d ,S_Ew ,M_Ew },
{L_MODRM ,O_LAR ,S_Gd ,M_Ew },{L_MODRM ,O_LSL ,S_Gd ,M_Ew },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{D_CLTS ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
/* 0x308 - 0x30f */
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },
{0 ,0 ,0 ,0 },{0 ,0 ,0 ,0 },

View file

@ -38,12 +38,12 @@ enum {
D_NOP,D_WAIT,
D_ENTERw,D_ENTERd,
D_LEAVEw,D_LEAVEd,
L_ERROR,
D_RETFw,D_RETFd,
D_RETFwIw,D_RETFdIw,
D_CPUID,
D_HLT,
D_HLT,D_CLTS,
L_ERROR,
};