2 Copyright (C) 1998 BJ Eirich (aka vecna)
\r
3 This program is free software; you can redistribute it and/or
\r
4 modify it under the terms of the GNU General Public License
\r
5 as published by the Free Software Foundation; either version 2
\r
6 of the License, or (at your option) any later version.
\r
7 This program is distributed in the hope that it will be useful,
\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\r
10 See the GNU General Public Lic
\r
11 See the GNU General Public License for more details.
\r
12 You should have received a copy of the GNU General Public License
\r
13 along with this program; if not, write to the Free Software
\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
17 #if !defined(INTERINC)
\r
22 #define REGISTERS union REGS
\r
23 #define SET_AX(r,v) (r).w.ax=(short)(v)
\r
24 #define SET_BX(r,v) (r).w.bx=(short)(v)
\r
25 #define SET_CX(r,v) (r).w.cx=(short)(v)
\r
26 #define SET_DX(r,v) (r).w.dx=(short)(v)
\r
27 #define INTERRUPT(i,r) int386((i),&(r),&(r))
\r
28 #elif defined(__DJGPP__)
\r
30 #define REGISTERS __dpmi_regs
\r
31 #define SET_AX(r,v) (r).x.ax=(short)(v)
\r
32 #define SET_BX(r,v) (r).x.bx=(short)(v)
\r
33 #define SET_CX(r,v) (r).x.cx=(short)(v)
\r
34 #define SET_DX(r,v) (r).x.dx=(short)(v)
\r
35 #define INTERRUPT(i,r) __dpmi_int((i),&(r))
\r
36 #endif // watcom | djgpp
\r