ref: 75027eef32d44f1dca82f61aae4e981b59735340
parent: b625cffaaaddff5d84483382c083652dac1394f3
author: unknown <fabien@fabien-PC.(none)>
date: Sat Dec 15 11:41:34 EST 2012
Removed MMX specific code.
--- a/Engine/src/display.h
+++ b/Engine/src/display.h
@@ -145,7 +145,7 @@
int setupmouse(void);
void readmousexy(short *x, short *y);
void readmousebstatus(short *bstatus);
-void __interrupt __far keyhandler(void);
+void keyhandler(void);
uint8_t _readlastkeyhit(void);
/* timer krap. */
@@ -153,7 +153,7 @@
void uninittimer(void);
/* this is implemented in the game, and your driver calls it. */
-void __interrupt __far timerhandler(void);
+void timerhandler(void);
/* resolution inits. sdl_driver.c ... */
int32_t _setgamemode(uint8_t davidoption, int32_t daxdim, int32_t daydim);
--- a/Engine/src/macos_compat.h
+++ b/Engine/src/macos_compat.h
@@ -11,10 +11,6 @@
#define PLATFORM_SUPPORTS_SDL
-#define __far
-#define __interrupt
-#define interrupt
-#define far
#define kmalloc(x) malloc(x)
#define kkmalloc(x) malloc(x)
#define kfree(x) free(x)
--- a/Engine/src/platform.h
+++ b/Engine/src/platform.h
@@ -17,14 +17,6 @@
#define __EXPORT__
#endif
-#if ((defined PLATFORM_SUPPORTS_SDL) && (!defined PLATFORM_TIMER_HZ))
-#define PLATFORM_TIMER_HZ 100
-#endif
-
-#if (!defined PLATFORM_TIMER_HZ)
-#error You need to define PLATFORM_TIMER_HZ for your platform.
-#endif
-
#if (defined __WATCOMC__)
#define snprintf _snprintf
#endif
--- a/Engine/src/win32_compat.h
+++ b/Engine/src/win32_compat.h
@@ -39,51 +39,6 @@
#include <dos.h>
#include <assert.h>
-extern const int hbits[]; /* !!! what is this, and why is it here? */
-
-/*
- Do some bitwise magic to approximate an algebraic (sign preserving)
- right shift.
- */
-#define shift_algebraic_right(value,distance) \
-(((value) >> (distance))| \
- (hbits[(distance) + (((value) & 0x80000000) >> 26)]))
-
-/* !!! remove me later! */
-/* !!! remove me later! */
-/* !!! remove me later! */
-#define outpw(x, y) printf("outpw(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define koutpw(x, y) printf("koutpw(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define outb(x, y) printf("outb(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define koutb(x, y) printf("koutb(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define outp(x, y) printf("outp(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define koutp(x, y) printf("koutp(0x%X, 0x%X) call in %s, line %d.\n", \
- (x), (y), __FILE__, __LINE__)
-
-#define kinp(x) _kinp_handler((x), __FILE__, __LINE__)
-#define inp(x) _inp_handler((x), __FILE__, __LINE__)
-
-int _inp_handler(int port, char *source_file, int source_line);
-int _kinp_handler(int port, char *source_file, int source_line);
-/* !!! remove me later! */
-/* !!! remove me later! */
-/* !!! remove me later! */
-
-
-#define __far
-#define __interrupt
-#define interrupt
-#define far
#define kmalloc(x) malloc(x)
#define kkmalloc(x) malloc(x)
#define kfree(x) free(x)
--- a/Game/src/dukewin.h
+++ b/Game/src/dukewin.h
@@ -17,9 +17,6 @@
#define STUBBED(x)
#endif
-#define __far
-#define __interrupt
-
#define PATH_SEP_CHAR '\\'
#define PATH_SEP_STR "\\"
--- a/Game/src/game.c
+++ b/Game/src/game.c
@@ -101,7 +101,7 @@
scale(x2,xdim,320)-1,scale(y2,ydim,200)-1); \
}
-void __interrupt __far newint24( int errval, int ax, int bp, int si );
+void newint24( int errval, int ax, int bp, int si );
int recfilep,totalreccnt;
uint8_t debug_on = 0,actor_tog = 0,*rtsptr,memorycheckoveride=0;