[NTVDM]
[reactos.git] / lib / 3rdparty / softx86 / softx87 / optab87.h
1
2 // return value:
3 // 0 = opcode not recognized
4 // 1 = opcode recognized, parsing complete
5 // 2 = opcode recognized, more parsing needed (i.e., prefix)
6 typedef int (*Sfx87OpcodeExec)(sx86_ubyte opcode,softx87_ctx* ctx);
7 typedef int (*Sfx87OpcodeDec)(sx86_ubyte opcode,softx87_ctx* ctx,char buf[128]);
8
9 typedef struct {
10 Sfx87OpcodeExec exec;
11 Sfx87OpcodeDec dec;
12 } Sfx87Opcode;
13
14 /* for sanity's sake we only look at the
15 upper 3 bits of the 11-bit opcode.
16 the opcode arrangement of FPU opcodes
17 makes a lot less sense than the CPU
18 opcode arrangement. */
19 typedef struct {
20 Sfx87Opcode table[8];
21 } Sfx87OpcodeTable;
22
23 extern Sfx87OpcodeTable optab8087;
24
25 extern char s87op1_tmp[32];
26 extern char s87op2_tmp[32];