]> 4ch.mooo.com Git - 16.git/blobdiff - 16/v2/source/verge/MAPED/INTER.H
attempted font system added
[16.git] / 16 / v2 / source / verge / MAPED / INTER.H
diff --git a/16/v2/source/verge/MAPED/INTER.H b/16/v2/source/verge/MAPED/INTER.H
new file mode 100644 (file)
index 0000000..9c50ae7
--- /dev/null
@@ -0,0 +1,38 @@
+/*\r
+Copyright (C) 1998 BJ Eirich (aka vecna)\r
+This program is free software; you can redistribute it and/or\r
+modify it under the terms of the GNU General Public License\r
+as published by the Free Software Foundation; either version 2\r
+of the License, or (at your option) any later version.\r
+This program is distributed in the hope that it will be useful,\r
+but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
+See the GNU General Public Lic\r
+See the GNU General Public License for more details.\r
+You should have received a copy of the GNU General Public License\r
+along with this program; if not, write to the Free Software\r
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+*/\r
+\r
+#if !defined(INTERINC)\r
+#define INTERINC\r
+\r
+#ifdef __WATCOMC__\r
+  #include <i86.h>\r
+  #define REGISTERS union REGS\r
+  #define SET_AX(r,v) (r).w.ax=(short)(v)\r
+  #define SET_BX(r,v) (r).w.bx=(short)(v)\r
+  #define SET_CX(r,v) (r).w.cx=(short)(v)\r
+  #define SET_DX(r,v) (r).w.dx=(short)(v)\r
+  #define INTERRUPT(i,r) int386((i),&(r),&(r))\r
+#elif defined(__DJGPP__)\r
+  #include <dpmi.h>\r
+  #define REGISTERS __dpmi_regs\r
+  #define SET_AX(r,v) (r).x.ax=(short)(v)\r
+  #define SET_BX(r,v) (r).x.bx=(short)(v)\r
+  #define SET_CX(r,v) (r).x.cx=(short)(v)\r
+  #define SET_DX(r,v) (r).x.dx=(short)(v)\r
+  #define INTERRUPT(i,r) __dpmi_int((i),&(r))\r
+#endif // watcom | djgpp\r
+\r
+#endif // INTERINC\r