Re: Old PCI Riva TNT
Matthieu Herrb <[email protected]>
| Newsgroups | gmane.os.openbsd.x11 |
|---|---|
| Message-ID | <[email protected]> |
Marc Matteo wrote (in a message from 20)
> Hi all,
>
> I got a new OpenBSD box, one with an 845GE based mobo. Now I know
> there's no 845G/845GE support in XFree86 4.2 so in the meantime I threw
> in an old Riva TNT PCI card so hopefully I could still use X (obviously,
> stunning graphics performance isn't an issue).
>
> Here the thing, it works, but when exiting X it kicks the monitor
> out-of-sync and basically I have to ssh in and actually power the box
> down to get it back.
>
> So any thoughts on avoiding this?
You should try the 'vesa' driver both on the Riva tnt and the onboard
graphics controller. It's not accelerated but with current processors
you still get decent performances.
You may need the attached diffs to xc/extras/x86emu for the vesa
driver with the i845 bios.
Matthieu
Index: x86emu/src/x86emu/decode.c
===================================================================
RCS file: /cvs/XF4/xc/extras/x86emu/src/x86emu/decode.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 decode.c
--- x86emu/src/x86emu/decode.c 4 Jun 2001 09:48:33 -0000 1.1.1.2
+++ x86emu/src/x86emu/decode.c 21 Nov 2002 07:33:38 -0000
@@ -37,7 +37,7 @@
*
****************************************************************************/
-/* $XFree86: xc/extras/x86emu/src/x86emu/decode.c,v 1.9 2001/01/06 20:19:03 tsi Exp $ */
+/* $XFree86: xc/extras/x86emu/src/x86emu/decode.c,v 1.10 2002/07/15 16:49:10 dawes Exp $ */
#include "x86emu/x86emui.h"
@@ -459,7 +459,7 @@
NOTE: Do not inline this function as (*sys_wrX) is already inline!
****************************************************************************/
void store_data_long(
- uint offset,
+ u32 offset,
u32 val)
{
#ifdef DEBUG
@@ -709,6 +709,99 @@
return NULL; /* NOT REACHED OR REACHED ON ERROR */
}
+/*
+ *
+ * return offset from the SIB Byte
+ */
+u32 decode_sib_address(int sib, int mod)
+{
+ u32 base = 0, i = 0, scale = 1;
+
+ switch(sib & 0x07) {
+ case 0:
+ DECODE_PRINTF("[EAX]");
+ base = M.x86.R_EAX;
+ break;
+ case 1:
+ DECODE_PRINTF("[ECX]");
+ base = M.x86.R_ECX;
+ break;
+ case 2:
+ DECODE_PRINTF("[EDX]");
+ base = M.x86.R_EDX;
+ break;
+ case 3:
+ DECODE_PRINTF("[EBX]");
+ base = M.x86.R_EBX;
+ break;
+ case 4:
+ DECODE_PRINTF("[ESP]");
+ base = M.x86.R_ESP;
+ M.x86.mode |= SYSMODE_SEG_DS_SS;
+ break;
+ case 5:
+ if (mod == 0) {
+ base = fetch_long_imm();
+ DECODE_PRINTF2("%08x", base);
+ } else {
+ DECODE_PRINTF("[EBP]");
+ base = M.x86.R_ESP;
+ M.x86.mode |= SYSMODE_SEG_DS_SS;
+ }
+ break;
+ case 6:
+ DECODE_PRINTF("[ESI]");
+ base = M.x86.R_ESI;
+ break;
+ case 7:
+ DECODE_PRINTF("[EDI]");
+ base = M.x86.R_EDI;
+ break;
+ }
+ switch ((sib >> 3) & 0x07) {
+ case 0:
+ DECODE_PRINTF("[EAX");
+ i = M.x86.R_EAX;
+ break;
+ case 1:
+ DECODE_PRINTF("[ECX");
+ i = M.x86.R_ECX;
+ break;
+ case 2:
+ DECODE_PRINTF("[EDX");
+ i = M.x86.R_EDX;
+ break;
+ case 3:
+ DECODE_PRINTF("[EBX");
+ i = M.x86.R_EBX;
+ break;
+ case 4:
+ i = 0;
+ break;
+ case 5:
+ DECODE_PRINTF("[EBP");
+ i = M.x86.R_EBP;
+ break;
+ case 6:
+ DECODE_PRINTF("[ESI");
+ i = M.x86.R_ESI;
+ break;
+ case 7:
+ DECODE_PRINTF("[EDI");
+ i = M.x86.R_EDI;
+ break;
+ }
+ scale = 1 << ((sib >> 6) & 0x03);
+ if (((sib >> 3) & 0x07) != 4) {
+ if (scale == 1) {
+ DECODE_PRINTF("]");
+ } else {
+ DECODE_PRINTF2("*%d]", scale);
+ }
+ }
+ return base + (i * scale);
+}
+
/****************************************************************************
PARAMETERS:
rm - RM value to decode
@@ -729,13 +822,44 @@
if a SS access is needed, set this bit. Otherwise, DS access
occurs (unless any of the segment override bits are set).
****************************************************************************/
-unsigned decode_rm00_address(
+u32 decode_rm00_address(
int rm)
{
- unsigned offset;
+ u32 offset;
+ int sib;
+ if (M.x86.mode & SYSMODE_PREFIX_ADDR) {
switch (rm) {
- case 0:
+ case 0:
+ DECODE_PRINTF("[EAX]");
+ return M.x86.R_EAX;
+ case 1:
+ DECODE_PRINTF("[ECX]");
+ return M.x86.R_ECX;
+ case 2:
+ DECODE_PRINTF("[EDX]");
+ return M.x86.R_EDX;
+ case 3:
+ DECODE_PRINTF("[EBX]");
+ return M.x86.R_EBX;
+ case 4:
+ sib = fetch_byte_imm();
+ return decode_sib_address(sib, 0);
+ case 5:
+ offset = fetch_long_imm();
+ DECODE_PRINTF2("[%08x]", offset);
+ return offset;
+ case 6:
+ DECODE_PRINTF("[ESI]");
+ return M.x86.R_ESI;
+ case 7:
+ DECODE_PRINTF("[EDI]");
+ return M.x86.R_EDI;
+ }
+ HALT_SYS();
+ } else {
+ switch (rm) {
+ case 0:
DECODE_PRINTF("[BX+SI]");
return M.x86.R_BX + M.x86.R_SI;
case 1:
@@ -764,6 +888,7 @@
return M.x86.R_BX;
}
HALT_SYS();
+ }
return 0;
}
@@ -778,12 +903,49 @@
Return the offset given by mod=01 addressing. Also enables the
decoding of instructions.
****************************************************************************/
-unsigned decode_rm01_address(
+u32 decode_rm01_address(
int rm)
{
- int displacement = (s8)fetch_byte_imm();
+ int displacement = 0;
+ int sib;
+
+ /* Fetch disp8 if no SIB byte */
+ if (!((M.x86.mode & SYSMODE_PREFIX_ADDR) && (rm == 4)))
+ displacement = (s8)fetch_byte_imm();
+
+ if (M.x86.mode & SYSMODE_PREFIX_ADDR) {
switch (rm) {
- case 0:
+ case 0:
+ DECODE_PRINTF2("%d[EAX]", displacement);
+ return M.x86.R_EAX + displacement;
+ case 1:
+ DECODE_PRINTF2("%d[ECX]", displacement);
+ return M.x86.R_ECX + displacement;
+ case 2:
+ DECODE_PRINTF2("%d[EDX]", displacement);
+ return M.x86.R_EDX + displacement;
+ case 3:
+ DECODE_PRINTF2("%d[EBX]", displacement);
+ return M.x86.R_EBX + displacement;
+ case 4:
+ sib = fetch_byte_imm();
+ displacement = (s8)fetch_byte_imm();
+ DECODE_PRINTF2("%d", displacement);
+ return decode_sib_address(sib, 1) + displacement;
+ case 5:
+ DECODE_PRINTF2("%d[EBP]", displacement);
+ return M.x86.R_EBP + displacement;
+ case 6:
+ DECODE_PRINTF2("%d[ESI]", displacement);
+ return M.x86.R_ESI + displacement;
+ case 7:
+ DECODE_PRINTF2("%d[EDI]", displacement);
+ return M.x86.R_EDI + displacement;
+ }
+ HALT_SYS();
+ } else {
+ switch (rm) {
+ case 0:
DECODE_PRINTF2("%d[BX+SI]", displacement);
return M.x86.R_BX + M.x86.R_SI + displacement;
case 1:
@@ -812,6 +974,7 @@
return M.x86.R_BX + displacement;
}
HALT_SYS();
+ }
return 0; /* SHOULD NOT HAPPEN */
}
@@ -826,12 +989,56 @@
Return the offset given by mod=10 addressing. Also enables the
decoding of instructions.
****************************************************************************/
-unsigned decode_rm10_address(
+u32 decode_rm10_address(
int rm)
{
- unsigned displacement = (u16)fetch_word_imm();
- switch (rm) {
- case 0:
+ u32 displacement = 0;
+ int sib;
+
+ /* Fetch disp16 if 16-bit addr mode */
+ if (!(M.x86.mode & SYSMODE_PREFIX_ADDR))
+ displacement = (u16)fetch_word_imm();
+ else {
+ /* Fetch disp32 if no SIB byte */
+ if (rm != 4)
+ displacement = (u32)fetch_long_imm();
+ }
+
+ if (M.x86.mode & SYSMODE_PREFIX_ADDR) {
+ switch (rm) {
+ case 0:
+ DECODE_PRINTF2("%08x[EAX]", displacement);
+ return M.x86.R_EAX + displacement;
+ case 1:
+ DECODE_PRINTF2("%08x[ECX]", displacement);
+ return M.x86.R_ECX + displacement;
+ case 2:
+ DECODE_PRINTF2("%08x[EDX]", displacement);
+ M.x86.mode |= SYSMODE_SEG_DS_SS;
+ return M.x86.R_EDX + displacement;
+ case 3:
+ DECODE_PRINTF2("%08x[EBX]", displacement);
+ return M.x86.R_EBX + displacement;
+ case 4:
+ sib = fetch_byte_imm();
+ displacement = (u32)fetch_long_imm();
+ DECODE_PRINTF2("%08x", displacement);
+ return decode_sib_address(sib, 2) + displacement;
+ break;
+ case 5:
+ DECODE_PRINTF2("%08x[EBP]", displacement);
+ return M.x86.R_EBP + displacement;
+ case 6:
+ DECODE_PRINTF2("%08x[ESI]", displacement);
+ return M.x86.R_ESI + displacement;
+ case 7:
+ DECODE_PRINTF2("%08x[EDI]", displacement);
+ return M.x86.R_EDI + displacement;
+ }
+ HALT_SYS();
+ } else {
+ switch (rm) {
+ case 0:
DECODE_PRINTF2("%04x[BX+SI]", displacement);
return M.x86.R_BX + M.x86.R_SI + displacement;
case 1:
@@ -860,6 +1067,7 @@
return M.x86.R_BX + displacement;
}
HALT_SYS();
+ }
return 0;
/*NOTREACHED */
}
Index: x86emu/src/x86emu/ops.c
===================================================================
RCS file: /cvs/XF4/xc/extras/x86emu/src/x86emu/ops.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 ops.c
--- x86emu/src/x86emu/ops.c 4 Jun 2001 09:48:34 -0000 1.1.1.2
+++ x86emu/src/x86emu/ops.c 21 Nov 2002 07:34:00 -0000
@@ -70,7 +70,7 @@
*
****************************************************************************/
-/* $XFree86: xc/extras/x86emu/src/x86emu/ops.c,v 1.6 2001/01/06 20:19:03 tsi Exp $ */
+/* $XFree86: xc/extras/x86emu/src/x86emu/ops.c,v 1.7 2002/07/15 16:49:10 dawes Exp $ */
#include "x86emu/x86emui.h"
@@ -83,7 +83,7 @@
REMARKS:
Handles illegal opcodes.
****************************************************************************/
-void x86emuOp_illegal_op(
+static void x86emuOp_illegal_op(
u8 op1)
{
START_OF_INSTR();
@@ -99,7 +99,7 @@
REMARKS:
Handles opcode 0x00
****************************************************************************/
-void x86emuOp_add_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -157,7 +157,7 @@
REMARKS:
Handles opcode 0x01
****************************************************************************/
-void x86emuOp_add_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -277,7 +277,7 @@
REMARKS:
Handles opcode 0x02
****************************************************************************/
-void x86emuOp_add_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -332,7 +332,7 @@
REMARKS:
Handles opcode 0x03
****************************************************************************/
-void x86emuOp_add_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -446,7 +446,7 @@
REMARKS:
Handles opcode 0x04
****************************************************************************/
-void x86emuOp_add_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -464,7 +464,7 @@
REMARKS:
Handles opcode 0x05
****************************************************************************/
-void x86emuOp_add_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_add_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -491,7 +491,7 @@
REMARKS:
Handles opcode 0x06
****************************************************************************/
-void x86emuOp_push_ES(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_ES(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tES\n");
@@ -505,7 +505,7 @@
REMARKS:
Handles opcode 0x07
****************************************************************************/
-void x86emuOp_pop_ES(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_ES(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("POP\tES\n");
@@ -519,7 +519,7 @@
REMARKS:
Handles opcode 0x08
****************************************************************************/
-void x86emuOp_or_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -577,7 +577,7 @@
REMARKS:
Handles opcode 0x09
****************************************************************************/
-void x86emuOp_or_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -697,7 +697,7 @@
REMARKS:
Handles opcode 0x0a
****************************************************************************/
-void x86emuOp_or_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -752,7 +752,7 @@
REMARKS:
Handles opcode 0x0b
****************************************************************************/
-void x86emuOp_or_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -866,7 +866,7 @@
REMARKS:
Handles opcode 0x0c
****************************************************************************/
-void x86emuOp_or_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -884,7 +884,7 @@
REMARKS:
Handles opcode 0x0d
****************************************************************************/
-void x86emuOp_or_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_or_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -911,7 +911,7 @@
REMARKS:
Handles opcode 0x0e
****************************************************************************/
-void x86emuOp_push_CS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_CS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tCS\n");
@@ -925,7 +925,7 @@
REMARKS:
Handles opcode 0x0f. Escape for two-byte opcode (286 or better)
****************************************************************************/
-void x86emuOp_two_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_two_byte(u8 X86EMU_UNUSED(op1))
{
u8 op2 = (*sys_rdb)(((u32)M.x86.R_CS << 4) + (M.x86.R_IP++));
INC_DECODED_INST_LEN(1);
@@ -936,7 +936,7 @@
REMARKS:
Handles opcode 0x10
****************************************************************************/
-void x86emuOp_adc_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -994,7 +994,7 @@
REMARKS:
Handles opcode 0x11
****************************************************************************/
-void x86emuOp_adc_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -1114,7 +1114,7 @@
REMARKS:
Handles opcode 0x12
****************************************************************************/
-void x86emuOp_adc_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -1169,7 +1169,7 @@
REMARKS:
Handles opcode 0x13
****************************************************************************/
-void x86emuOp_adc_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -1283,7 +1283,7 @@
REMARKS:
Handles opcode 0x14
****************************************************************************/
-void x86emuOp_adc_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -1301,7 +1301,7 @@
REMARKS:
Handles opcode 0x15
****************************************************************************/
-void x86emuOp_adc_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_adc_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -1328,7 +1328,7 @@
REMARKS:
Handles opcode 0x16
****************************************************************************/
-void x86emuOp_push_SS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_SS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tSS\n");
@@ -1342,7 +1342,7 @@
REMARKS:
Handles opcode 0x17
****************************************************************************/
-void x86emuOp_pop_SS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_SS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("POP\tSS\n");
@@ -1356,7 +1356,7 @@
REMARKS:
Handles opcode 0x18
****************************************************************************/
-void x86emuOp_sbb_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -1414,7 +1414,7 @@
REMARKS:
Handles opcode 0x19
****************************************************************************/
-void x86emuOp_sbb_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -1534,7 +1534,7 @@
REMARKS:
Handles opcode 0x1a
****************************************************************************/
-void x86emuOp_sbb_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -1589,7 +1589,7 @@
REMARKS:
Handles opcode 0x1b
****************************************************************************/
-void x86emuOp_sbb_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -1703,7 +1703,7 @@
REMARKS:
Handles opcode 0x1c
****************************************************************************/
-void x86emuOp_sbb_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -1721,7 +1721,7 @@
REMARKS:
Handles opcode 0x1d
****************************************************************************/
-void x86emuOp_sbb_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sbb_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -1748,7 +1748,7 @@
REMARKS:
Handles opcode 0x1e
****************************************************************************/
-void x86emuOp_push_DS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_DS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tDS\n");
@@ -1762,7 +1762,7 @@
REMARKS:
Handles opcode 0x1f
****************************************************************************/
-void x86emuOp_pop_DS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_DS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("POP\tDS\n");
@@ -1776,7 +1776,7 @@
REMARKS:
Handles opcode 0x20
****************************************************************************/
-void x86emuOp_and_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -1838,7 +1838,7 @@
REMARKS:
Handles opcode 0x21
****************************************************************************/
-void x86emuOp_and_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -1958,7 +1958,7 @@
REMARKS:
Handles opcode 0x22
****************************************************************************/
-void x86emuOp_and_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -2013,7 +2013,7 @@
REMARKS:
Handles opcode 0x23
****************************************************************************/
-void x86emuOp_and_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -2128,7 +2128,7 @@
REMARKS:
Handles opcode 0x24
****************************************************************************/
-void x86emuOp_and_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -2146,7 +2146,7 @@
REMARKS:
Handles opcode 0x25
****************************************************************************/
-void x86emuOp_and_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_and_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -2173,7 +2173,7 @@
REMARKS:
Handles opcode 0x26
****************************************************************************/
-void x86emuOp_segovr_ES(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_ES(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("ES:\n");
@@ -2190,7 +2190,7 @@
REMARKS:
Handles opcode 0x27
****************************************************************************/
-void x86emuOp_daa(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_daa(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("DAA\n");
@@ -2204,7 +2204,7 @@
REMARKS:
Handles opcode 0x28
****************************************************************************/
-void x86emuOp_sub_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -2262,7 +2262,7 @@
REMARKS:
Handles opcode 0x29
****************************************************************************/
-void x86emuOp_sub_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -2382,7 +2382,7 @@
REMARKS:
Handles opcode 0x2a
****************************************************************************/
-void x86emuOp_sub_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -2437,7 +2437,7 @@
REMARKS:
Handles opcode 0x2b
****************************************************************************/
-void x86emuOp_sub_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -2551,7 +2551,7 @@
REMARKS:
Handles opcode 0x2c
****************************************************************************/
-void x86emuOp_sub_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -2569,7 +2569,7 @@
REMARKS:
Handles opcode 0x2d
****************************************************************************/
-void x86emuOp_sub_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sub_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -2596,7 +2596,7 @@
REMARKS:
Handles opcode 0x2e
****************************************************************************/
-void x86emuOp_segovr_CS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_CS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("CS:\n");
@@ -2610,7 +2610,7 @@
REMARKS:
Handles opcode 0x2f
****************************************************************************/
-void x86emuOp_das(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_das(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("DAS\n");
@@ -2624,7 +2624,7 @@
REMARKS:
Handles opcode 0x30
****************************************************************************/
-void x86emuOp_xor_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -2682,7 +2682,7 @@
REMARKS:
Handles opcode 0x31
****************************************************************************/
-void x86emuOp_xor_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -2802,7 +2802,7 @@
REMARKS:
Handles opcode 0x32
****************************************************************************/
-void x86emuOp_xor_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -2857,7 +2857,7 @@
REMARKS:
Handles opcode 0x33
****************************************************************************/
-void x86emuOp_xor_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -2971,7 +2971,7 @@
REMARKS:
Handles opcode 0x34
****************************************************************************/
-void x86emuOp_xor_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -2989,7 +2989,7 @@
REMARKS:
Handles opcode 0x35
****************************************************************************/
-void x86emuOp_xor_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xor_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -3016,7 +3016,7 @@
REMARKS:
Handles opcode 0x36
****************************************************************************/
-void x86emuOp_segovr_SS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_SS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("SS:\n");
@@ -3030,7 +3030,7 @@
REMARKS:
Handles opcode 0x37
****************************************************************************/
-void x86emuOp_aaa(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_aaa(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("AAA\n");
@@ -3044,7 +3044,7 @@
REMARKS:
Handles opcode 0x38
****************************************************************************/
-void x86emuOp_cmp_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -3099,7 +3099,7 @@
REMARKS:
Handles opcode 0x39
****************************************************************************/
-void x86emuOp_cmp_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -3213,7 +3213,7 @@
REMARKS:
Handles opcode 0x3a
****************************************************************************/
-void x86emuOp_cmp_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -3268,7 +3268,7 @@
REMARKS:
Handles opcode 0x3b
****************************************************************************/
-void x86emuOp_cmp_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -3382,7 +3382,7 @@
REMARKS:
Handles opcode 0x3c
****************************************************************************/
-void x86emuOp_cmp_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 srcval;
@@ -3400,7 +3400,7 @@
REMARKS:
Handles opcode 0x3d
****************************************************************************/
-void x86emuOp_cmp_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmp_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -3427,7 +3427,7 @@
REMARKS:
Handles opcode 0x3e
****************************************************************************/
-void x86emuOp_segovr_DS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_DS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("DS:\n");
@@ -3441,7 +3441,7 @@
REMARKS:
Handles opcode 0x3f
****************************************************************************/
-void x86emuOp_aas(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_aas(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("AAS\n");
@@ -3455,7 +3455,7 @@
REMARKS:
Handles opcode 0x40
****************************************************************************/
-void x86emuOp_inc_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_AX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3477,7 +3477,7 @@
REMARKS:
Handles opcode 0x41
****************************************************************************/
-void x86emuOp_inc_CX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_CX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3499,7 +3499,7 @@
REMARKS:
Handles opcode 0x42
****************************************************************************/
-void x86emuOp_inc_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3521,7 +3521,7 @@
REMARKS:
Handles opcode 0x43
****************************************************************************/
-void x86emuOp_inc_BX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_BX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3543,7 +3543,7 @@
REMARKS:
Handles opcode 0x44
****************************************************************************/
-void x86emuOp_inc_SP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_SP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3565,7 +3565,7 @@
REMARKS:
Handles opcode 0x45
****************************************************************************/
-void x86emuOp_inc_BP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_BP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3587,7 +3587,7 @@
REMARKS:
Handles opcode 0x46
****************************************************************************/
-void x86emuOp_inc_SI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_SI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3609,7 +3609,7 @@
REMARKS:
Handles opcode 0x47
****************************************************************************/
-void x86emuOp_inc_DI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_inc_DI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3631,7 +3631,7 @@
REMARKS:
Handles opcode 0x48
****************************************************************************/
-void x86emuOp_dec_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_AX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3653,7 +3653,7 @@
REMARKS:
Handles opcode 0x49
****************************************************************************/
-void x86emuOp_dec_CX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_CX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3675,7 +3675,7 @@
REMARKS:
Handles opcode 0x4a
****************************************************************************/
-void x86emuOp_dec_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3697,7 +3697,7 @@
REMARKS:
Handles opcode 0x4b
****************************************************************************/
-void x86emuOp_dec_BX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_BX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3719,7 +3719,7 @@
REMARKS:
Handles opcode 0x4c
****************************************************************************/
-void x86emuOp_dec_SP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_SP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3741,7 +3741,7 @@
REMARKS:
Handles opcode 0x4d
****************************************************************************/
-void x86emuOp_dec_BP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_BP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3763,7 +3763,7 @@
REMARKS:
Handles opcode 0x4e
****************************************************************************/
-void x86emuOp_dec_SI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_SI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3785,7 +3785,7 @@
REMARKS:
Handles opcode 0x4f
****************************************************************************/
-void x86emuOp_dec_DI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_dec_DI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3807,7 +3807,7 @@
REMARKS:
Handles opcode 0x50
****************************************************************************/
-void x86emuOp_push_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_AX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3829,7 +3829,7 @@
REMARKS:
Handles opcode 0x51
****************************************************************************/
-void x86emuOp_push_CX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_CX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3851,7 +3851,7 @@
REMARKS:
Handles opcode 0x52
****************************************************************************/
-void x86emuOp_push_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3873,7 +3873,7 @@
REMARKS:
Handles opcode 0x53
****************************************************************************/
-void x86emuOp_push_BX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_BX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3895,7 +3895,7 @@
REMARKS:
Handles opcode 0x54
****************************************************************************/
-void x86emuOp_push_SP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_SP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3921,7 +3921,7 @@
REMARKS:
Handles opcode 0x55
****************************************************************************/
-void x86emuOp_push_BP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_BP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3943,7 +3943,7 @@
REMARKS:
Handles opcode 0x56
****************************************************************************/
-void x86emuOp_push_SI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_SI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3965,7 +3965,7 @@
REMARKS:
Handles opcode 0x57
****************************************************************************/
-void x86emuOp_push_DI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_DI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -3987,7 +3987,7 @@
REMARKS:
Handles opcode 0x58
****************************************************************************/
-void x86emuOp_pop_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_AX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4009,7 +4009,7 @@
REMARKS:
Handles opcode 0x59
****************************************************************************/
-void x86emuOp_pop_CX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_CX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4031,7 +4031,7 @@
REMARKS:
Handles opcode 0x5a
****************************************************************************/
-void x86emuOp_pop_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4053,7 +4053,7 @@
REMARKS:
Handles opcode 0x5b
****************************************************************************/
-void x86emuOp_pop_BX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_BX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4075,7 +4075,7 @@
REMARKS:
Handles opcode 0x5c
****************************************************************************/
-void x86emuOp_pop_SP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_SP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4097,7 +4097,7 @@
REMARKS:
Handles opcode 0x5d
****************************************************************************/
-void x86emuOp_pop_BP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_BP(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4119,7 +4119,7 @@
REMARKS:
Handles opcode 0x5e
****************************************************************************/
-void x86emuOp_pop_SI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_SI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4141,7 +4141,7 @@
REMARKS:
Handles opcode 0x5f
****************************************************************************/
-void x86emuOp_pop_DI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_DI(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4163,7 +4163,7 @@
REMARKS:
Handles opcode 0x60
****************************************************************************/
-void x86emuOp_push_all(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_all(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4203,7 +4203,7 @@
REMARKS:
Handles opcode 0x61
****************************************************************************/
-void x86emuOp_pop_all(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_all(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4242,7 +4242,7 @@
REMARKS:
Handles opcode 0x64
****************************************************************************/
-void x86emuOp_segovr_FS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_FS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("FS:\n");
@@ -4259,7 +4259,7 @@
REMARKS:
Handles opcode 0x65
****************************************************************************/
-void x86emuOp_segovr_GS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_segovr_GS(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("GS:\n");
@@ -4276,7 +4276,7 @@
REMARKS:
Handles opcode 0x66 - prefix for 32-bit register
****************************************************************************/
-void x86emuOp_prefix_data(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_prefix_data(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("DATA:\n");
@@ -4290,7 +4290,7 @@
REMARKS:
Handles opcode 0x67 - prefix for 32-bit address
****************************************************************************/
-void x86emuOp_prefix_addr(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_prefix_addr(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("ADDR:\n");
@@ -4304,7 +4304,7 @@
REMARKS:
Handles opcode 0x68
****************************************************************************/
-void x86emuOp_push_word_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_word_IMM(u8 X86EMU_UNUSED(op1))
{
u32 imm;
@@ -4329,7 +4329,7 @@
REMARKS:
Handles opcode 0x69
****************************************************************************/
-void x86emuOp_imul_word_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_imul_word_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -4530,7 +4530,7 @@
REMARKS:
Handles opcode 0x6a
****************************************************************************/
-void x86emuOp_push_byte_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_push_byte_IMM(u8 X86EMU_UNUSED(op1))
{
s16 imm;
@@ -4547,7 +4547,7 @@
REMARKS:
Handles opcode 0x6b
****************************************************************************/
-void x86emuOp_imul_byte_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_imul_byte_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -4741,7 +4741,7 @@
REMARKS:
Handles opcode 0x6c
****************************************************************************/
-void x86emuOp_ins_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ins_byte(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("INSB\n");
@@ -4755,7 +4755,7 @@
REMARKS:
Handles opcode 0x6d
****************************************************************************/
-void x86emuOp_ins_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ins_word(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4774,7 +4774,7 @@
REMARKS:
Handles opcode 0x6e
****************************************************************************/
-void x86emuOp_outs_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_outs_byte(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("OUTSB\n");
@@ -4788,7 +4788,7 @@
REMARKS:
Handles opcode 0x6f
****************************************************************************/
-void x86emuOp_outs_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_outs_word(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -4807,7 +4807,7 @@
REMARKS:
Handles opcode 0x70
****************************************************************************/
-void x86emuOp_jump_near_O(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_O(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4829,7 +4829,7 @@
REMARKS:
Handles opcode 0x71
****************************************************************************/
-void x86emuOp_jump_near_NO(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NO(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4851,7 +4851,7 @@
REMARKS:
Handles opcode 0x72
****************************************************************************/
-void x86emuOp_jump_near_B(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_B(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4873,7 +4873,7 @@
REMARKS:
Handles opcode 0x73
****************************************************************************/
-void x86emuOp_jump_near_NB(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NB(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4895,7 +4895,7 @@
REMARKS:
Handles opcode 0x74
****************************************************************************/
-void x86emuOp_jump_near_Z(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_Z(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4917,7 +4917,7 @@
REMARKS:
Handles opcode 0x75
****************************************************************************/
-void x86emuOp_jump_near_NZ(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NZ(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4939,7 +4939,7 @@
REMARKS:
Handles opcode 0x76
****************************************************************************/
-void x86emuOp_jump_near_BE(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_BE(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4962,7 +4962,7 @@
REMARKS:
Handles opcode 0x77
****************************************************************************/
-void x86emuOp_jump_near_NBE(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NBE(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -4985,7 +4985,7 @@
REMARKS:
Handles opcode 0x78
****************************************************************************/
-void x86emuOp_jump_near_S(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_S(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5007,7 +5007,7 @@
REMARKS:
Handles opcode 0x79
****************************************************************************/
-void x86emuOp_jump_near_NS(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NS(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5029,7 +5029,7 @@
REMARKS:
Handles opcode 0x7a
****************************************************************************/
-void x86emuOp_jump_near_P(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_P(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5051,7 +5051,7 @@
REMARKS:
Handles opcode 0x7b
****************************************************************************/
-void x86emuOp_jump_near_NP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NP(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5073,7 +5073,7 @@
REMARKS:
Handles opcode 0x7c
****************************************************************************/
-void x86emuOp_jump_near_L(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_L(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5098,7 +5098,7 @@
REMARKS:
Handles opcode 0x7d
****************************************************************************/
-void x86emuOp_jump_near_NL(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NL(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5124,7 +5124,7 @@
REMARKS:
Handles opcode 0x7e
****************************************************************************/
-void x86emuOp_jump_near_LE(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_LE(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5150,7 +5150,7 @@
REMARKS:
Handles opcode 0x7f
****************************************************************************/
-void x86emuOp_jump_near_NLE(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_NLE(u8 X86EMU_UNUSED(op1))
{
s8 offset;
u16 target;
@@ -5188,7 +5188,7 @@
REMARKS:
Handles opcode 0x80
****************************************************************************/
-void x86emuOp_opc80_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opc80_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -5320,7 +5320,7 @@
REMARKS:
Handles opcode 0x81
****************************************************************************/
-void x86emuOp_opc81_word_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opc81_word_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -5507,7 +5507,7 @@
REMARKS:
Handles opcode 0x82
****************************************************************************/
-void x86emuOp_opc82_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opc82_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -5635,7 +5635,7 @@
REMARKS:
Handles opcode 0x83
****************************************************************************/
-void x86emuOp_opc83_word_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opc83_word_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -5800,7 +5800,7 @@
REMARKS:
Handles opcode 0x84
****************************************************************************/
-void x86emuOp_test_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_test_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -5855,7 +5855,7 @@
REMARKS:
Handles opcode 0x85
****************************************************************************/
-void x86emuOp_test_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_test_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -5969,7 +5969,7 @@
REMARKS:
Handles opcode 0x86
****************************************************************************/
-void x86emuOp_xchg_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -6036,7 +6036,7 @@
REMARKS:
Handles opcode 0x87
****************************************************************************/
-void x86emuOp_xchg_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -6174,7 +6174,7 @@
REMARKS:
Handles opcode 0x88
****************************************************************************/
-void x86emuOp_mov_byte_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -6225,10 +6225,10 @@
REMARKS:
Handles opcode 0x89
****************************************************************************/
-void x86emuOp_mov_word_RM_R(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_RM_R(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
- uint destoffset;
+ u32 destoffset;
START_OF_INSTR();
DECODE_PRINTF("MOV\t");
@@ -6327,7 +6327,7 @@
REMARKS:
Handles opcode 0x8a
****************************************************************************/
-void x86emuOp_mov_byte_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg, *srcreg;
@@ -6382,7 +6382,7 @@
REMARKS:
Handles opcode 0x8b
****************************************************************************/
-void x86emuOp_mov_word_R_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_R_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint srcoffset;
@@ -6496,7 +6496,7 @@
REMARKS:
Handles opcode 0x8c
****************************************************************************/
-void x86emuOp_mov_word_RM_SR(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_RM_SR(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u16 *destreg, *srcreg;
@@ -6551,7 +6551,7 @@
REMARKS:
Handles opcode 0x8d
****************************************************************************/
-void x86emuOp_lea_word_R_M(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lea_word_R_M(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u16 *srcreg;
@@ -6603,7 +6603,7 @@
REMARKS:
Handles opcode 0x8e
****************************************************************************/
-void x86emuOp_mov_word_SR_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_SR_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u16 *destreg, *srcreg;
@@ -6664,7 +6664,7 @@
REMARKS:
Handles opcode 0x8f
****************************************************************************/
-void x86emuOp_pop_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pop_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -6760,7 +6760,7 @@
REMARKS:
Handles opcode 0x90
****************************************************************************/
-void x86emuOp_nop(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_nop(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("NOP\n");
@@ -6773,7 +6773,7 @@
REMARKS:
Handles opcode 0x91
****************************************************************************/
-void x86emuOp_xchg_word_AX_CX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_CX(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6801,7 +6801,7 @@
REMARKS:
Handles opcode 0x92
****************************************************************************/
-void x86emuOp_xchg_word_AX_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_DX(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6829,7 +6829,7 @@
REMARKS:
Handles opcode 0x93
****************************************************************************/
-void x86emuOp_xchg_word_AX_BX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_BX(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6857,7 +6857,7 @@
REMARKS:
Handles opcode 0x94
****************************************************************************/
-void x86emuOp_xchg_word_AX_SP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_SP(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6885,7 +6885,7 @@
REMARKS:
Handles opcode 0x95
****************************************************************************/
-void x86emuOp_xchg_word_AX_BP(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_BP(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6913,7 +6913,7 @@
REMARKS:
Handles opcode 0x96
****************************************************************************/
-void x86emuOp_xchg_word_AX_SI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_SI(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6941,7 +6941,7 @@
REMARKS:
Handles opcode 0x97
****************************************************************************/
-void x86emuOp_xchg_word_AX_DI(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xchg_word_AX_DI(u8 X86EMU_UNUSED(op1))
{
u32 tmp;
@@ -6969,7 +6969,7 @@
REMARKS:
Handles opcode 0x98
****************************************************************************/
-void x86emuOp_cbw(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cbw(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -6999,7 +6999,7 @@
REMARKS:
Handles opcode 0x99
****************************************************************************/
-void x86emuOp_cwd(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cwd(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -7030,7 +7030,7 @@
REMARKS:
Handles opcode 0x9a
****************************************************************************/
-void x86emuOp_call_far_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_call_far_IMM(u8 X86EMU_UNUSED(op1))
{
u16 farseg, faroff;
@@ -7061,7 +7061,7 @@
REMARKS:
Handles opcode 0x9b
****************************************************************************/
-void x86emuOp_wait(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_wait(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("WAIT");
@@ -7075,7 +7075,7 @@
REMARKS:
Handles opcode 0x9c
****************************************************************************/
-void x86emuOp_pushf_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_pushf_word(u8 X86EMU_UNUSED(op1))
{
u32 flags;
@@ -7102,7 +7102,7 @@
REMARKS:
Handles opcode 0x9d
****************************************************************************/
-void x86emuOp_popf_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_popf_word(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -7124,7 +7124,7 @@
REMARKS:
Handles opcode 0x9e
****************************************************************************/
-void x86emuOp_sahf(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sahf(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("SAHF\n");
@@ -7141,7 +7141,7 @@
REMARKS:
Handles opcode 0x9f
****************************************************************************/
-void x86emuOp_lahf(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lahf(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("LAHF\n");
@@ -7158,7 +7158,7 @@
REMARKS:
Handles opcode 0xa0
****************************************************************************/
-void x86emuOp_mov_AL_M_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_AL_M_IMM(u8 X86EMU_UNUSED(op1))
{
u16 offset;
@@ -7176,7 +7176,7 @@
REMARKS:
Handles opcode 0xa1
****************************************************************************/
-void x86emuOp_mov_AX_M_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_AX_M_IMM(u8 X86EMU_UNUSED(op1))
{
u16 offset;
@@ -7201,7 +7201,7 @@
REMARKS:
Handles opcode 0xa2
****************************************************************************/
-void x86emuOp_mov_M_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_M_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u16 offset;
@@ -7219,7 +7219,7 @@
REMARKS:
Handles opcode 0xa3
****************************************************************************/
-void x86emuOp_mov_M_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_M_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u16 offset;
@@ -7244,7 +7244,7 @@
REMARKS:
Handles opcode 0xa4
****************************************************************************/
-void x86emuOp_movs_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_movs_byte(u8 X86EMU_UNUSED(op1))
{
u8 val;
u32 count;
@@ -7279,7 +7279,7 @@
REMARKS:
Handles opcode 0xa5
****************************************************************************/
-void x86emuOp_movs_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_movs_word(u8 X86EMU_UNUSED(op1))
{
u32 val;
int inc;
@@ -7327,7 +7327,7 @@
REMARKS:
Handles opcode 0xa6
****************************************************************************/
-void x86emuOp_cmps_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmps_byte(u8 X86EMU_UNUSED(op1))
{
s8 val1, val2;
int inc;
@@ -7383,7 +7383,7 @@
REMARKS:
Handles opcode 0xa7
****************************************************************************/
-void x86emuOp_cmps_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmps_word(u8 X86EMU_UNUSED(op1))
{
u32 val1,val2;
int inc;
@@ -7464,7 +7464,7 @@
REMARKS:
Handles opcode 0xa8
****************************************************************************/
-void x86emuOp_test_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_test_AL_IMM(u8 X86EMU_UNUSED(op1))
{
int imm;
@@ -7482,7 +7482,7 @@
REMARKS:
Handles opcode 0xa9
****************************************************************************/
-void x86emuOp_test_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_test_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -7509,7 +7509,7 @@
REMARKS:
Handles opcode 0xaa
****************************************************************************/
-void x86emuOp_stos_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_stos_byte(u8 X86EMU_UNUSED(op1))
{
int inc;
@@ -7541,7 +7541,7 @@
REMARKS:
Handles opcode 0xab
****************************************************************************/
-void x86emuOp_stos_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_stos_word(u8 X86EMU_UNUSED(op1))
{
int inc;
u32 count;
@@ -7585,7 +7585,7 @@
REMARKS:
Handles opcode 0xac
****************************************************************************/
-void x86emuOp_lods_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lods_byte(u8 X86EMU_UNUSED(op1))
{
int inc;
@@ -7617,7 +7617,7 @@
REMARKS:
Handles opcode 0xad
****************************************************************************/
-void x86emuOp_lods_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lods_word(u8 X86EMU_UNUSED(op1))
{
int inc;
u32 count;
@@ -7661,7 +7661,7 @@
REMARKS:
Handles opcode 0xae
****************************************************************************/
-void x86emuOp_scas_byte(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_scas_byte(u8 X86EMU_UNUSED(op1))
{
s8 val2;
int inc;
@@ -7710,7 +7710,7 @@
REMARKS:
Handles opcode 0xaf
****************************************************************************/
-void x86emuOp_scas_word(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_scas_word(u8 X86EMU_UNUSED(op1))
{
int inc;
u32 val;
@@ -7782,7 +7782,7 @@
REMARKS:
Handles opcode 0xb0
****************************************************************************/
-void x86emuOp_mov_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7800,7 +7800,7 @@
REMARKS:
Handles opcode 0xb1
****************************************************************************/
-void x86emuOp_mov_byte_CL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_CL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7818,7 +7818,7 @@
REMARKS:
Handles opcode 0xb2
****************************************************************************/
-void x86emuOp_mov_byte_DL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_DL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7836,7 +7836,7 @@
REMARKS:
Handles opcode 0xb3
****************************************************************************/
-void x86emuOp_mov_byte_BL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_BL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7854,7 +7854,7 @@
REMARKS:
Handles opcode 0xb4
****************************************************************************/
-void x86emuOp_mov_byte_AH_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_AH_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7872,7 +7872,7 @@
REMARKS:
Handles opcode 0xb5
****************************************************************************/
-void x86emuOp_mov_byte_CH_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_CH_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7890,7 +7890,7 @@
REMARKS:
Handles opcode 0xb6
****************************************************************************/
-void x86emuOp_mov_byte_DH_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_DH_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7908,7 +7908,7 @@
REMARKS:
Handles opcode 0xb7
****************************************************************************/
-void x86emuOp_mov_byte_BH_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_BH_IMM(u8 X86EMU_UNUSED(op1))
{
u8 imm;
@@ -7926,7 +7926,7 @@
REMARKS:
Handles opcode 0xb8
****************************************************************************/
-void x86emuOp_mov_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -7953,7 +7953,7 @@
REMARKS:
Handles opcode 0xb9
****************************************************************************/
-void x86emuOp_mov_word_CX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_CX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -7980,7 +7980,7 @@
REMARKS:
Handles opcode 0xba
****************************************************************************/
-void x86emuOp_mov_word_DX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_DX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8007,7 +8007,7 @@
REMARKS:
Handles opcode 0xbb
****************************************************************************/
-void x86emuOp_mov_word_BX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_BX_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8034,7 +8034,7 @@
REMARKS:
Handles opcode 0xbc
****************************************************************************/
-void x86emuOp_mov_word_SP_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_SP_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8061,7 +8061,7 @@
REMARKS:
Handles opcode 0xbd
****************************************************************************/
-void x86emuOp_mov_word_BP_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_BP_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8088,7 +8088,7 @@
REMARKS:
Handles opcode 0xbe
****************************************************************************/
-void x86emuOp_mov_word_SI_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_SI_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8115,7 +8115,7 @@
REMARKS:
Handles opcode 0xbf
****************************************************************************/
-void x86emuOp_mov_word_DI_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_DI_IMM(u8 X86EMU_UNUSED(op1))
{
u32 srcval;
@@ -8155,7 +8155,7 @@
REMARKS:
Handles opcode 0xc0
****************************************************************************/
-void x86emuOp_opcC0_byte_RM_MEM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcC0_byte_RM_MEM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -8281,7 +8281,7 @@
REMARKS:
Handles opcode 0xc1
****************************************************************************/
-void x86emuOp_opcC1_word_RM_MEM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcC1_word_RM_MEM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -8435,7 +8435,7 @@
REMARKS:
Handles opcode 0xc2
****************************************************************************/
-void x86emuOp_ret_near_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ret_near_IMM(u8 X86EMU_UNUSED(op1))
{
u16 imm;
@@ -8455,7 +8455,7 @@
REMARKS:
Handles opcode 0xc3
****************************************************************************/
-void x86emuOp_ret_near(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ret_near(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("RET\n");
@@ -8470,7 +8470,7 @@
REMARKS:
Handles opcode 0xc4
****************************************************************************/
-void x86emuOp_les_R_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_les_R_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rh, rl;
u16 *dstreg;
@@ -8519,7 +8519,7 @@
REMARKS:
Handles opcode 0xc5
****************************************************************************/
-void x86emuOp_lds_R_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lds_R_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rh, rl;
u16 *dstreg;
@@ -8568,7 +8568,7 @@
REMARKS:
Handles opcode 0xc6
****************************************************************************/
-void x86emuOp_mov_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -8623,7 +8623,7 @@
REMARKS:
Handles opcode 0xc7
****************************************************************************/
-void x86emuOp_mov_word_RM_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_mov_word_RM_IMM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -8729,7 +8729,7 @@
REMARKS:
Handles opcode 0xc8
****************************************************************************/
-void x86emuOp_enter(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_enter(u8 X86EMU_UNUSED(op1))
{
u16 local,frame_pointer;
u8 nesting;
@@ -8760,7 +8760,7 @@
REMARKS:
Handles opcode 0xc9
****************************************************************************/
-void x86emuOp_leave(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_leave(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("LEAVE\n");
@@ -8775,7 +8775,7 @@
REMARKS:
Handles opcode 0xca
****************************************************************************/
-void x86emuOp_ret_far_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ret_far_IMM(u8 X86EMU_UNUSED(op1))
{
u16 imm;
@@ -8796,7 +8796,7 @@
REMARKS:
Handles opcode 0xcb
****************************************************************************/
-void x86emuOp_ret_far(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_ret_far(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("RETF\n");
@@ -8812,7 +8812,7 @@
REMARKS:
Handles opcode 0xcc
****************************************************************************/
-void x86emuOp_int3(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_int3(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("INT 3\n");
@@ -8836,7 +8836,7 @@
REMARKS:
Handles opcode 0xcd
****************************************************************************/
-void x86emuOp_int_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_int_IMM(u8 X86EMU_UNUSED(op1))
{
u8 intnum;
@@ -8864,7 +8864,7 @@
REMARKS:
Handles opcode 0xce
****************************************************************************/
-void x86emuOp_into(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_into(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("INTO\n");
@@ -8890,7 +8890,7 @@
REMARKS:
Handles opcode 0xcf
****************************************************************************/
-void x86emuOp_iret(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_iret(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("IRET\n");
@@ -8908,7 +8908,7 @@
REMARKS:
Handles opcode 0xd0
****************************************************************************/
-void x86emuOp_opcD0_byte_RM_1(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcD0_byte_RM_1(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -9002,7 +9002,7 @@
REMARKS:
Handles opcode 0xd1
****************************************************************************/
-void x86emuOp_opcD1_word_RM_1(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcD1_word_RM_1(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -9150,7 +9150,7 @@
REMARKS:
Handles opcode 0xd2
****************************************************************************/
-void x86emuOp_opcD2_byte_RM_CL(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcD2_byte_RM_CL(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -9246,7 +9246,7 @@
REMARKS:
Handles opcode 0xd3
****************************************************************************/
-void x86emuOp_opcD3_word_RM_CL(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcD3_word_RM_CL(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -9392,7 +9392,7 @@
REMARKS:
Handles opcode 0xd4
****************************************************************************/
-void x86emuOp_aam(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_aam(u8 X86EMU_UNUSED(op1))
{
u8 a;
@@ -9415,7 +9415,7 @@
REMARKS:
Handles opcode 0xd5
****************************************************************************/
-void x86emuOp_aad(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_aad(u8 X86EMU_UNUSED(op1))
{
u8 a;
@@ -9434,7 +9434,7 @@
REMARKS:
Handles opcode 0xd7
****************************************************************************/
-void x86emuOp_xlat(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_xlat(u8 X86EMU_UNUSED(op1))
{
u16 addr;
@@ -9453,7 +9453,7 @@
REMARKS:
Handles opcode 0xe0
****************************************************************************/
-void x86emuOp_loopne(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_loopne(u8 X86EMU_UNUSED(op1))
{
s16 ip;
@@ -9474,7 +9474,7 @@
REMARKS:
Handles opcode 0xe1
****************************************************************************/
-void x86emuOp_loope(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_loope(u8 X86EMU_UNUSED(op1))
{
s16 ip;
@@ -9495,7 +9495,7 @@
REMARKS:
Handles opcode 0xe2
****************************************************************************/
-void x86emuOp_loop(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_loop(u8 X86EMU_UNUSED(op1))
{
s16 ip;
@@ -9516,7 +9516,7 @@
REMARKS:
Handles opcode 0xe3
****************************************************************************/
-void x86emuOp_jcxz(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jcxz(u8 X86EMU_UNUSED(op1))
{
u16 target;
s8 offset;
@@ -9538,7 +9538,7 @@
REMARKS:
Handles opcode 0xe4
****************************************************************************/
-void x86emuOp_in_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_in_byte_AL_IMM(u8 X86EMU_UNUSED(op1))
{
u8 port;
@@ -9556,7 +9556,7 @@
REMARKS:
Handles opcode 0xe5
****************************************************************************/
-void x86emuOp_in_word_AX_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_in_word_AX_IMM(u8 X86EMU_UNUSED(op1))
{
u8 port;
@@ -9582,7 +9582,7 @@
REMARKS:
Handles opcode 0xe6
****************************************************************************/
-void x86emuOp_out_byte_IMM_AL(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_out_byte_IMM_AL(u8 X86EMU_UNUSED(op1))
{
u8 port;
@@ -9600,7 +9600,7 @@
REMARKS:
Handles opcode 0xe7
****************************************************************************/
-void x86emuOp_out_word_IMM_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_out_word_IMM_AX(u8 X86EMU_UNUSED(op1))
{
u8 port;
@@ -9626,7 +9626,7 @@
REMARKS:
Handles opcode 0xe8
****************************************************************************/
-void x86emuOp_call_near_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_call_near_IMM(u8 X86EMU_UNUSED(op1))
{
s16 ip;
@@ -9647,7 +9647,7 @@
REMARKS:
Handles opcode 0xe9
****************************************************************************/
-void x86emuOp_jump_near_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_near_IMM(u8 X86EMU_UNUSED(op1))
{
int ip;
@@ -9666,7 +9666,7 @@
REMARKS:
Handles opcode 0xea
****************************************************************************/
-void x86emuOp_jump_far_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_far_IMM(u8 X86EMU_UNUSED(op1))
{
u16 cs, ip;
@@ -9687,7 +9687,7 @@
REMARKS:
Handles opcode 0xeb
****************************************************************************/
-void x86emuOp_jump_byte_IMM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_jump_byte_IMM(u8 X86EMU_UNUSED(op1))
{
u16 target;
s8 offset;
@@ -9707,7 +9707,7 @@
REMARKS:
Handles opcode 0xec
****************************************************************************/
-void x86emuOp_in_byte_AL_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_in_byte_AL_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("IN\tAL,DX\n");
@@ -9721,7 +9721,7 @@
REMARKS:
Handles opcode 0xed
****************************************************************************/
-void x86emuOp_in_word_AX_DX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_in_word_AX_DX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -9743,7 +9743,7 @@
REMARKS:
Handles opcode 0xee
****************************************************************************/
-void x86emuOp_out_byte_DX_AL(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_out_byte_DX_AL(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("OUT\tDX,AL\n");
@@ -9757,7 +9757,7 @@
REMARKS:
Handles opcode 0xef
****************************************************************************/
-void x86emuOp_out_word_DX_AX(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_out_word_DX_AX(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -9779,7 +9779,7 @@
REMARKS:
Handles opcode 0xf0
****************************************************************************/
-void x86emuOp_lock(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_lock(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("LOCK:\n");
@@ -9794,7 +9794,7 @@
REMARKS:
Handles opcode 0xf2
****************************************************************************/
-void x86emuOp_repne(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_repne(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("REPNE\n");
@@ -9808,7 +9808,7 @@
REMARKS:
Handles opcode 0xf3
****************************************************************************/
-void x86emuOp_repe(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_repe(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("REPE\n");
@@ -9822,7 +9822,7 @@
REMARKS:
Handles opcode 0xf4
****************************************************************************/
-void x86emuOp_halt(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_halt(u8 X86EMU_UNUSED(op1))
{
START_OF_INSTR();
DECODE_PRINTF("HALT\n");
@@ -9836,7 +9836,7 @@
REMARKS:
Handles opcode 0xf5
****************************************************************************/
-void x86emuOp_cmc(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cmc(u8 X86EMU_UNUSED(op1))
{
/* complement the carry flag. */
START_OF_INSTR();
@@ -9851,7 +9851,7 @@
REMARKS:
Handles opcode 0xf6
****************************************************************************/
-void x86emuOp_opcF6_byte_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcF6_byte_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
u8 *destreg;
@@ -10135,7 +10135,7 @@
REMARKS:
Handles opcode 0xf7
****************************************************************************/
-void x86emuOp_opcF7_word_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcF7_word_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rl, rh;
uint destoffset;
@@ -10790,7 +10790,7 @@
REMARKS:
Handles opcode 0xf8
****************************************************************************/
-void x86emuOp_clc(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_clc(u8 X86EMU_UNUSED(op1))
{
/* clear the carry flag. */
START_OF_INSTR();
@@ -10805,7 +10805,7 @@
REMARKS:
Handles opcode 0xf9
****************************************************************************/
-void x86emuOp_stc(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_stc(u8 X86EMU_UNUSED(op1))
{
/* set the carry flag. */
START_OF_INSTR();
@@ -10820,7 +10820,7 @@
REMARKS:
Handles opcode 0xfa
****************************************************************************/
-void x86emuOp_cli(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cli(u8 X86EMU_UNUSED(op1))
{
/* clear interrupts. */
START_OF_INSTR();
@@ -10835,7 +10835,7 @@
REMARKS:
Handles opcode 0xfb
****************************************************************************/
-void x86emuOp_sti(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_sti(u8 X86EMU_UNUSED(op1))
{
/* enable interrupts. */
START_OF_INSTR();
@@ -10850,7 +10850,7 @@
REMARKS:
Handles opcode 0xfc
****************************************************************************/
-void x86emuOp_cld(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_cld(u8 X86EMU_UNUSED(op1))
{
/* clear interrupts. */
START_OF_INSTR();
@@ -10865,7 +10865,7 @@
REMARKS:
Handles opcode 0xfd
****************************************************************************/
-void x86emuOp_std(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_std(u8 X86EMU_UNUSED(op1))
{
/* clear interrupts. */
START_OF_INSTR();
@@ -10880,7 +10880,7 @@
REMARKS:
Handles opcode 0xfe
****************************************************************************/
-void x86emuOp_opcFE_byte_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcFE_byte_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rh, rl;
u8 destval;
@@ -10997,7 +10997,7 @@
REMARKS:
Handles opcode 0xff
****************************************************************************/
-void x86emuOp_opcFF_word_RM(u8 X86EMU_UNUSED(op1))
+static void x86emuOp_opcFF_word_RM(u8 X86EMU_UNUSED(op1))
{
int mod, rh, rl;
uint destoffset = 0;
Index: x86emu/src/x86emu/ops2.c
===================================================================
RCS file: /cvs/XF4/xc/extras/x86emu/src/x86emu/ops2.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ops2.c
--- x86emu/src/x86emu/ops2.c 15 Feb 2001 07:59:12 -0000 1.1.1.1
+++ x86emu/src/x86emu/ops2.c 21 Nov 2002 07:34:11 -0000
@@ -37,7 +37,7 @@
* instructions.
*
****************************************************************************/
-/* $XFree86: xc/extras/x86emu/src/x86emu/ops2.c,v 1.4 2000/11/16 19:44:50 eich Exp $ */
+/* $XFree86: xc/extras/x86emu/src/x86emu/ops2.c,v 1.5 2002/07/15 16:49:10 dawes Exp $ */
#include "x86emu/x86emui.h"
@@ -50,7 +50,7 @@
REMARKS:
Handles illegal opcodes.
****************************************************************************/
-void x86emuOp2_illegal_op(
+static void x86emuOp2_illegal_op(
u8 op2)
{
START_OF_INSTR();
@@ -68,7 +68,7 @@
REMARKS:
Handles opcode 0x0f,0x80-0x8F
****************************************************************************/
-void x86emuOp2_long_jump(u8 op2)
+static void x86emuOp2_long_jump(u8 op2)
{
s32 target;
char *name = 0;
@@ -159,7 +159,7 @@
REMARKS:
Handles opcode 0x0f,0x90-0x9F
****************************************************************************/
-void x86emuOp2_set_byte(u8 op2)
+static void x86emuOp2_set_byte(u8 op2)
{
int mod, rl, rh;
uint destoffset;
@@ -268,7 +268,7 @@
REMARKS:
Handles opcode 0x0f,0xa0
****************************************************************************/
-void x86emuOp2_push_FS(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_push_FS(u8 X86EMU_UNUSED(op2))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tFS\n");
@@ -282,7 +282,7 @@
REMARKS:
Handles opcode 0x0f,0xa1
****************************************************************************/
-void x86emuOp2_pop_FS(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_pop_FS(u8 X86EMU_UNUSED(op2))
{
START_OF_INSTR();
DECODE_PRINTF("POP\tFS\n");
@@ -296,7 +296,7 @@
REMARKS:
Handles opcode 0x0f,0xa3
****************************************************************************/
-void x86emuOp2_bt_R(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_bt_R(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -417,7 +417,7 @@
REMARKS:
Handles opcode 0x0f,0xa4
****************************************************************************/
-void x86emuOp2_shld_IMM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_shld_IMM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint destoffset;
@@ -554,7 +554,7 @@
REMARKS:
Handles opcode 0x0f,0xa5
****************************************************************************/
-void x86emuOp2_shld_CL(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_shld_CL(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint destoffset;
@@ -674,7 +674,7 @@
REMARKS:
Handles opcode 0x0f,0xa8
****************************************************************************/
-void x86emuOp2_push_GS(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_push_GS(u8 X86EMU_UNUSED(op2))
{
START_OF_INSTR();
DECODE_PRINTF("PUSH\tGS\n");
@@ -688,7 +688,7 @@
REMARKS:
Handles opcode 0x0f,0xa9
****************************************************************************/
-void x86emuOp2_pop_GS(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_pop_GS(u8 X86EMU_UNUSED(op2))
{
START_OF_INSTR();
DECODE_PRINTF("POP\tGS\n");
@@ -698,11 +698,12 @@
END_OF_INSTR();
}
+#if 0
/****************************************************************************
REMARKS:
Handles opcode 0x0f,0xaa
****************************************************************************/
-void x86emuOp2_bts_R(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_bts_R(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -836,12 +837,13 @@
DECODE_CLEAR_SEGOVR();
END_OF_INSTR();
}
+#endif
/****************************************************************************
REMARKS:
Handles opcode 0x0f,0xac
****************************************************************************/
-void x86emuOp2_shrd_IMM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_shrd_IMM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint destoffset;
@@ -978,7 +980,7 @@
REMARKS:
Handles opcode 0x0f,0xad
****************************************************************************/
-void x86emuOp2_shrd_CL(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_shrd_CL(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint destoffset;
@@ -1098,7 +1100,7 @@
REMARKS:
Handles opcode 0x0f,0xaf
****************************************************************************/
-void x86emuOp2_imul_R_RM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_imul_R_RM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -1275,7 +1277,7 @@
REMARKS:
Handles opcode 0x0f,0xb2
****************************************************************************/
-void x86emuOp2_lss_R_IMM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_lss_R_IMM(u8 X86EMU_UNUSED(op2))
{
int mod, rh, rl;
u16 *dstreg;
@@ -1324,7 +1326,7 @@
REMARKS:
Handles opcode 0x0f,0xb3
****************************************************************************/
-void x86emuOp2_btr_R(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_btr_R(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -1463,7 +1465,7 @@
REMARKS:
Handles opcode 0x0f,0xb4
****************************************************************************/
-void x86emuOp2_lfs_R_IMM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_lfs_R_IMM(u8 X86EMU_UNUSED(op2))
{
int mod, rh, rl;
u16 *dstreg;
@@ -1512,7 +1514,7 @@
REMARKS:
Handles opcode 0x0f,0xb5
****************************************************************************/
-void x86emuOp2_lgs_R_IMM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_lgs_R_IMM(u8 X86EMU_UNUSED(op2))
{
int mod, rh, rl;
u16 *dstreg;
@@ -1561,7 +1563,7 @@
REMARKS:
Handles opcode 0x0f,0xb6
****************************************************************************/
-void x86emuOp2_movzx_byte_R_RM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_movzx_byte_R_RM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -1677,7 +1679,7 @@
REMARKS:
Handles opcode 0x0f,0xb7
****************************************************************************/
-void x86emuOp2_movzx_word_R_RM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_movzx_word_R_RM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -1733,7 +1735,7 @@
REMARKS:
Handles opcode 0x0f,0xba
****************************************************************************/
-void x86emuOp2_btX_I(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_btX_I(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -1983,7 +1985,7 @@
REMARKS:
Handles opcode 0x0f,0xbb
****************************************************************************/
-void x86emuOp2_btc_R(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_btc_R(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -2122,7 +2124,7 @@
REMARKS:
Handles opcode 0x0f,0xbc
****************************************************************************/
-void x86emuOp2_bsf(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_bsf(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -2238,7 +2240,7 @@
REMARKS:
Handles opcode 0x0f,0xbd
****************************************************************************/
-void x86emuOp2_bsr(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_bsr(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -2354,7 +2356,7 @@
REMARKS:
Handles opcode 0x0f,0xbe
****************************************************************************/
-void x86emuOp2_movsx_byte_R_RM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_movsx_byte_R_RM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
@@ -2470,7 +2472,7 @@
REMARKS:
Handles opcode 0x0f,0xbf
****************************************************************************/
-void x86emuOp2_movsx_word_R_RM(u8 X86EMU_UNUSED(op2))
+static void x86emuOp2_movsx_word_R_RM(u8 X86EMU_UNUSED(op2))
{
int mod, rl, rh;
uint srcoffset;
Index: x86emu/src/x86emu/x86emu/decode.h
===================================================================
RCS file: /cvs/XF4/xc/extras/x86emu/src/x86emu/x86emu/decode.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 decode.h
--- x86emu/src/x86emu/x86emu/decode.h 15 Feb 2001 07:59:13 -0000 1.1.1.1
+++ x86emu/src/x86emu/x86emu/decode.h 21 Nov 2002 07:34:11 -0000
@@ -76,9 +76,10 @@
u16* decode_rm_word_register(int reg);
u32* decode_rm_long_register(int reg);
u16* decode_rm_seg_register(int reg);
-unsigned decode_rm00_address(int rm);
-unsigned decode_rm01_address(int rm);
-unsigned decode_rm10_address(int rm);
+u32 decode_rm00_address(int rm);
+u32 decode_rm01_address(int rm);
+u32 decode_rm10_address(int rm);
+u32 decode_sib_address(int sib, int mod);
#ifdef __cplusplus
} /* End of "C" linkage for C++ */