Skip to content

Commit 40d9e1d

Browse files
authored
Add prefix_none.h for GRP4 instruction handling
1 parent b4d0360 commit 40d9e1d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/cpu/core_normal/prefix_none.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
CASE_B(0xfe) /* GRP4 Eb */
2+
{
3+
GetRM;Bitu which=(rm>>3)&7;
4+
switch (which) {
5+
case 0x00: /* INC Eb */
6+
RMEb(INCB);
7+
break;
8+
case 0x01: /* DEC Eb */
9+
RMEb(DECB);
10+
break;
11+
case 0x07: /* CallBack */
12+
{
13+
Bitu cb=Fetchw();
14+
FillFlags();SAVEIP;
15+
return cb;
16+
}
17+
default:
18+
E_Exit("Illegal GRP4 Call %d",(rm>>3) & 7);
19+
break;
20+
}
21+
break;
22+
}

0 commit comments

Comments
 (0)