Implemented undocumented F6/1 and F7/1 TEST instructions.

Implemented undocumented F1 LOCK and ICEBP instructions.
Implemented missing 286 LOADALL functionality.
SMSW now sets all 12 bits to 1 on 286.
Patch from Greatpsycho.
This commit is contained in:
SarahW 2017-04-28 18:47:38 +01:00
commit 4cb5ddd7f7
5 changed files with 61 additions and 12 deletions

View file

@ -3025,6 +3025,7 @@ void execx86(int cycs)
switch (rmdat&0x38)
{
case 0x00: /*TEST b,#8*/
case 0x08:
temp2=FETCH();
temp&=temp2;
setznp8(temp);
@ -3163,6 +3164,7 @@ void execx86(int cycs)
switch (rmdat&0x38)
{
case 0x00: /*TEST w*/
case 0x08:
tempw2=getword();
setznp16(tempw&tempw2);
flags&=~(C_FLAG|V_FLAG|A_FLAG);