diff -u --recursive --new-file dosemu0.51old//.depend dosemu0.51//.depend
--- dosemu0.51old//.depend	Thu Jun  2 22:04:14 1994
+++ dosemu0.51//.depend	Sun Jun  5 18:45:00 1994
@@ -1,27 +1,30 @@
 bios_emm.o : bios_emm.c emu.h machcompat.h cpu.h 
 cmos.o : cmos.c emu.h machcompat.h cpu.h cmos.h disks.h 
-cpu.o : cpu.c config.h memory.h cpu.h termio.h emu.h machcompat.h ./include/port.h \
-  ./include/video.h dpmi/dpmi.h 
+cpu.o : cpu.c config.h memory.h cpu.h termio.h emu.h machcompat.h /home/src/dosemu0.60/include/port.h \
+  /home/src/dosemu0.60/include/video.h dpmi/dpmi.h 
 disks.o : disks.c emu.h machcompat.h cpu.h disks.h 
 dos.o : dos.c config.h 
 dosconfig.o : dosconfig.c 
-dosio.o : dosio.c memory.h emu.h machcompat.h cpu.h termio.h dosio.h ./include/mouse.h \
-  ./include/video.h 
+dosio.o : dosio.c memory.h emu.h machcompat.h cpu.h termio.h dosio.h /home/src/dosemu0.60/include/mouse.h \
+  /home/src/dosemu0.60/include/video.h 
 dyndeb.o : dyndeb.c emu.h machcompat.h cpu.h 
-emu.o : emu.c config.h memory.h emu.h machcompat.h cpu.h ./include/bios.h termio.h \
-  ./include/video.h timers.h cmos.h ./include/mouse.h dosio.h disks.h xms.h dpmi/dpmi.h \
-  ./include/ipx.h ./include/../cpu.h serial.h ./include/keymaps.h int10.h int.h 
+emu.o : emu.c config.h memory.h emu.h machcompat.h cpu.h /home/src/dosemu0.60/include/bios.h \
+  termio.h /home/src/dosemu0.60/include/video.h timers.h cmos.h /home/src/dosemu0.60/include/mouse.h \
+  dosio.h disks.h xms.h dpmi/dpmi.h /home/src/dosemu0.60/include/ipx.h /home/src/dosemu0.60/include/../cpu.h \
+  serial.h /home/src/dosemu0.60/include/keymaps.h int10.h int.h 
 keymaps.o : keymaps.c config.h 
 lpt.o : lpt.c emu.h machcompat.h cpu.h dosio.h lpt.h 
 mfs.o : mfs.c mfs.h emu.h machcompat.h cpu.h config.h memory.h 
 mutex.o : mutex.c config.h emu.h machcompat.h cpu.h mutex.h 
 prnt.o : prnt.c 
-serial.o : serial.c config.h cpu.h emu.h machcompat.h dosio.h serial.h ./include/mouse.h 
-sigsegv.o : sigsegv.c emu.h machcompat.h cpu.h ./include/bios.h ./include/mouse.h \
-  serial.h xms.h timers.h cmos.h memory.h termio.h config.h ./include/port.h ./include/ipx.h \
-  ./include/../cpu.h ./include/video.h dpmi/dpmi.h ports.h 
-termio.o : termio.c config.h memory.h emu.h machcompat.h cpu.h termio.h ./include/video.h \
-  ./include/mouse.h dosio.h ./include/keymaps.h 
+serial.o : serial.c config.h cpu.h emu.h machcompat.h dosio.h serial.h /home/src/dosemu0.60/include/mouse.h 
+sigsegv.o : sigsegv.c emu.h machcompat.h cpu.h /home/src/dosemu0.60/include/bios.h \
+  /home/src/dosemu0.60/include/mouse.h serial.h xms.h timers.h cmos.h memory.h \
+  termio.h config.h /home/src/dosemu0.60/include/port.h /home/src/dosemu0.60/include/ipx.h \
+  /home/src/dosemu0.60/include/../cpu.h /home/src/dosemu0.60/include/video.h dpmi/dpmi.h \
+  ports.h 
+termio.o : termio.c config.h memory.h emu.h machcompat.h cpu.h termio.h /home/src/dosemu0.60/include/video.h \
+  /home/src/dosemu0.60/include/mouse.h dosio.h /home/src/dosemu0.60/include/keymaps.h 
 timers.o : timers.c emu.h machcompat.h cpu.h timers.h 
 xms.o : xms.c emu.h machcompat.h cpu.h config.h memory.h xms.h dosio.h 
 bios.o : bios.S
diff -u --recursive --new-file dosemu0.51old//ChangeLog dosemu0.51//ChangeLog
--- dosemu0.51old//ChangeLog	Thu Jun  2 22:04:14 1994
+++ dosemu0.51//ChangeLog	Sun Jun  5 18:45:00 1994
@@ -1,3 +1,15 @@
+Sun Jun 05 1994 JES
+
+-	Alan's latest patches for busmice with a start for graphics
+	support.
+-	Alessandro Rubini (rubini@ipvvis.UNIPV.IT) patches to make 
+	Makefiles inherit important common include directory paths.
+-	By suggestion from Jon Tombs, make default inb return 0xff
+	and the creation of tempdir be strdup'ed incase it's freed
+	by a config request.
+-	Changed CNTR timers to count UP by 0x2221 instead of down.
+-	Changed a compare in xms.c according to Scott Buchholz.
+
 Thu Jun 02 1994 JES
 
 -	Patches from Rob including updates to s3 code.
diff -u --recursive --new-file dosemu0.51old//Makefile dosemu0.51//Makefile
--- dosemu0.51old//Makefile	Thu Jun  2 22:04:14 1994
+++ dosemu0.51//Makefile	Sun Jun  5 18:45:00 1994
@@ -1,8 +1,8 @@
 # Makefile for Linux DOS emulator
 #
-# $Date: 1994/05/30 00:08:20 $
+# $Date: 1994/06/05 21:17:35 $
 # $Source: /home/src/dosemu0.60/RCS/Makefile,v $
-# $Revision: 1.60 $
+# $Revision: 1.61 $
 # $State: Exp $
 #
 
@@ -9,6 +9,8 @@
 # You should do a make config, make dep, make clean if you're doing
 # the first compile. 
 
+#Change the following line if the right kernel includes reside elsewhere
+LINUX_INCLUDE = /usr/src/linux/include
 #ifdef DEBUG
 #STATIC=1
 #DOSOBJS=$(OBJS)
@@ -112,7 +114,9 @@
 DPMI = 
 endif
 
-INCDIR     = -I./include -I.
+TOPDIR  := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+INCDIR     = -I$(TOPDIR)/include -I$(TOPDIR) -I$(LINUX_INCLUDE)
+export INCDIR
 CFLAGS     = $(DPMI) $(CDEBUGOPTS) $(COPTFLAGS) $(INCDIR)
 LDFLAGS    = $(LNKOPTS) # exclude symbol information
 AS86 = as86
diff -u --recursive --new-file dosemu0.51old//clients/Makefile dosemu0.51//clients/Makefile
--- dosemu0.51old//clients/Makefile	Thu Jun  2 22:04:27 1994
+++ dosemu0.51//clients/Makefile	Sun Jun  5 18:45:31 1994
@@ -4,7 +4,7 @@
 
 CFILES= ncurses.c
 HFILES= ncurses.h
-INCDIR= -I../include -I.. -I/usr/include/ncurses -I/usr/local/include
+#INCDIR= -I../include -I.. -I/usr/include/ncurses -I/usr/local/include
 LDFLAGS = -lncurses
 
 %.com: %.S
diff -u --recursive --new-file dosemu0.51old//dpmi/Makefile dosemu0.51//dpmi/Makefile
--- dosemu0.51old//dpmi/Makefile	Thu Jun  2 22:04:27 1994
+++ dosemu0.51//dpmi/Makefile	Sun Jun  5 18:45:31 1994
@@ -1,7 +1,8 @@
 CC   = gcc
 AS86 = as86 -0 -a
 LD86 = ld86 -0
-INCDIR = -I../ -I../include/
+# INCDIR is exported from ..
+#INCDIR = -I../ -I../include/
 
 %.com: %.S
 	$(AS86) -0 -j -o $*.o $<
diff -u --recursive --new-file dosemu0.51old//emu.c dosemu0.51//emu.c
--- dosemu0.51old//emu.c	Thu Jun  2 22:04:13 1994
+++ dosemu0.51//emu.c	Sun Jun  5 18:45:00 1994
@@ -1,12 +1,15 @@
 #define EMU_C 1
 /* Extensions by Robert Sanders, 1992-93
  *
- * $Date: 1994/06/03 00:58:55 $
+ * $Date: 1994/06/05 21:17:35 $
  * $Source: /home/src/dosemu0.60/RCS/emu.c,v $
- * $Revision: 1.88 $
+ * $Revision: 1.89 $
  * $State: Exp $
  *
  * $Log: emu.c,v $
+ * Revision 1.89  1994/06/05  21:17:35  root
+ * Prep for pre51_24.
+ *
  * Revision 1.88  1994/06/03  00:58:55  root
  * pre51_23 prep, Daniel's fix for scrbuf malloc().
  *
@@ -1301,7 +1304,7 @@
 
   config.emusys = (char *) NULL;
   config.emubat = (char *) NULL;
-  tmpdir = tempnam("/tmp", "dosemu");
+  tmpdir = strdup(tempnam("/tmp", "dosemu"));
   config.dosbanner = 1;
   config.allowvideoportaccess = 0;
 
@@ -1981,7 +1984,7 @@
 
 void
  usage(void) {
-  fprintf(stdout, "$Header: /home/src/dosemu0.60/RCS/emu.c,v 1.88 1994/06/03 00:58:55 root Exp root $\n");
+  fprintf(stdout, "$Header: /home/src/dosemu0.60/RCS/emu.c,v 1.89 1994/06/05 21:17:35 root Exp root $\n");
   fprintf(stdout, "usage: dos [-ABCckbVNtsgxKm234e] [-D flags] [-M SIZE] [-P FILE] [ -F File ] 2> dosdbg\n");
   fprintf(stdout, "    -A boot from first defined floppy disk (A)\n");
   fprintf(stdout, "    -B boot from second defined floppy disk (B) (#)\n");
@@ -2199,7 +2202,7 @@
     }
 
   case 5:			/* show banner */
-    p_dos_str("\n\nLinux DOS emulator " VERSTR " $Date: 1994/06/03 00:58:55 $\n");
+    p_dos_str("\n\nLinux DOS emulator " VERSTR " $Date: 1994/06/05 21:17:35 $\n");
     p_dos_str("Last configured at %s\n", CONFIG_TIME);
     p_dos_str("on %s\n", CONFIG_HOST);
     /*      p_dos_str("maintained by Robert Sanders, gt8134b@prism.gatech.edu\n\n"); */
diff -u --recursive --new-file dosemu0.51old//include/Makefile dosemu0.51//include/Makefile
--- dosemu0.51old//include/Makefile	Thu Jun  2 22:04:23 1994
+++ dosemu0.51//include/Makefile	Sun Jun  5 18:45:31 1994
@@ -4,7 +4,8 @@
 CC   = gcc                         
 LD   = ld
 
-INCDIR= -I../include -I../
+# INCDIR is exported from ..
+#INCDIR= -I../include -I../
 
 CFLAGS=-O2 -Wall -Wmissing-prototypes \
 	-Wstrict-prototypes  # -ansi -pedantic
diff -u --recursive --new-file dosemu0.51old//include/mouse.h dosemu0.51//include/mouse.h
--- dosemu0.51old//include/mouse.h	Thu Jun  2 22:04:23 1994
+++ dosemu0.51//include/mouse.h	Sun Jun  5 18:45:31 1994
@@ -60,6 +60,7 @@
 
   /* these are for MOUSE position */
   int x, y;
+  int points;
   int minx, maxx, miny, maxy;
 
   /* these are for CURSOR position */
diff -u --recursive --new-file dosemu0.51old//init/Makefile dosemu0.51//init/Makefile
--- dosemu0.51old//init/Makefile	Thu Jun  2 22:04:28 1994
+++ dosemu0.51//init/Makefile	Sun Jun  5 18:45:32 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 
 # let gcc do extended checking
 
diff -u --recursive --new-file dosemu0.51old//ipxutils/Makefile dosemu0.51//ipxutils/Makefile
--- dosemu0.51old//ipxutils/Makefile	Thu Jun  2 22:04:29 1994
+++ dosemu0.51//ipxutils/Makefile	Sun Jun  5 18:45:33 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 SUBDIR=ipxutils
 
 # let gcc do extended checking
diff -u --recursive --new-file dosemu0.51old//kernel/Makefile dosemu0.51//kernel/Makefile
--- dosemu0.51old//kernel/Makefile	Thu Jun  2 22:04:29 1994
+++ dosemu0.51//kernel/Makefile	Sun Jun  5 18:45:33 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 SUBDIR=kernel
 
 # let gcc do extended checking
diff -u --recursive --new-file dosemu0.51old//mouse/Makefile dosemu0.51//mouse/Makefile
--- dosemu0.51old//mouse/Makefile	Thu Jun  2 22:04:23 1994
+++ dosemu0.51//mouse/Makefile	Sun Jun  5 18:45:30 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 SUBDIR=mouse
 
 # let gcc do extended checking
diff -u --recursive --new-file dosemu0.51old//mouse/mouse.c dosemu0.51//mouse/mouse.c
--- dosemu0.51old//mouse/mouse.c	Thu Jun  2 22:04:23 1994
+++ dosemu0.51//mouse/mouse.c	Sun Jun  5 18:45:30 1994
@@ -1,12 +1,15 @@
 /* mouse.c for the DOS emulator
  *       Robert Sanders, gt8134b@prism.gatech.edu
  *
- * $Date: 1994/05/24 01:24:18 $
+ * $Date: 1994/06/05 21:18:15 $
  * $Source: /home/src/dosemu0.60/mouse/RCS/mouse.c,v $
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
  * $State: Exp $
  *
  * $Log: mouse.c,v $
+ * Revision 1.3  1994/06/05  21:18:15  root
+ * Prep for pre51_24.
+ *
  * Revision 1.2  1994/05/24  01:24:18  root
  * Lutz's latest, int_queue_run() update.
  *
@@ -84,6 +87,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <errno.h>
+#include <linux/mman.h>
 
 #include "bios.h"
 #include "emu.h"
@@ -108,6 +112,8 @@
 /* called when mouse changes */
 void mouse_delta(int);
 
+boolean gfx_cursor;
+
 mouse_t mice[MAX_MOUSE];
 
 static long mousecursormask[HEIGHT] =  {
@@ -288,15 +294,10 @@
     LWORD(eax) = 0xffff;
     LWORD(ebx)=2; 
 
-  /* default is top left of the screen */
-  mouse.x = 320;
-  mouse.y = 100;
-  mouse.cx = 40;
-  mouse.cy = 12;
-
   mouse.minx = mouse.miny = 0;
-  mouse.maxx = 640;
-  mouse.maxy = 200;
+  mouse.maxx = bios_rows_on_screen_minus_1;
+  mouse.maxy = bios_screen_columns;
+  mouse.points = (*(unsigned short *)0x485);
   mouse.ratio = 1;
   mouse.cursor_on = 0;
   mouse.cursor_type = 0;
@@ -304,6 +305,11 @@
   mouse.lpcount = mouse.mpcount = mouse.rpcount = 0;
   mouse.lrcount = mouse.mrcount = mouse.rrcount = 0;
 
+  mouse.x = 0;
+  mouse.y = 0;
+  mouse.cx = 0;
+  mouse.cy = 0;
+
   mouse.ip = mouse.cs = 0;
   mouse.mask = 0;		/* no interrupts */
 
@@ -406,10 +412,7 @@
 {
   m_printf("MOUSE: set gfx cursor...hspot: %d, vspot: %d, masks: %04x:%04x\n",
 	   LWORD(ebx), LWORD(ecx), LWORD(es), LWORD(edx));
-  LWORD(ebx) = 0;
-  LWORD(ecx) = 0;
-  LWORD(es) = *mousescreenmask;
-  LWORD(edx) = *mousecursormask;
+  gfx_cursor = TRUE;
 }
 
 void 
@@ -417,6 +420,7 @@
 {
   m_printf("MOUSE: set text cursor...type: %d, start: 0x%04x, end: 0x%04x\n",
 	   LWORD(ebx), LWORD(ecx), LWORD(edx));
+  gfx_cursor = FALSE;
 }
 
 void 
@@ -490,8 +494,8 @@
   m_printf("MOUSE: mouse moved updown from %d to %d\n", mouse.y, mouse.y - 1);
   if (mouse.y < 0)
     mouse.y = 0;
-  if (mouse.y > 199)
-    mouse.y = 199;
+  if (mouse.y > mouse.maxy)
+    mouse.y = mouse.maxy;
   mouse.cy = mouse.y / 8;
   mouse.mickeyy -= MICKEY;
   mouse_delta(DELTA_CURSOR);
@@ -503,8 +507,8 @@
   m_printf("MOUSE: mouse moved leftright from %d to %d\n", mouse.x, mouse.x - 1);
   if (mouse.x < 0)
     mouse.x = 0;
-  if (mouse.x > 639)
-    mouse.x = 639;
+  if (mouse.x > mouse.maxx)
+    mouse.x = mouse.maxx;
   mouse.cx = mouse.x / 8;
   mouse.mickeyx -= MICKEY;
   mouse_delta(DELTA_CURSOR);
@@ -638,16 +642,34 @@
 void
 mouse_do_cur(void)
 {
-  unsigned short *p = SCREEN_ADR(bios_current_screen_page);
-
-  p[mouse.hidx + mouse.hidy * 80] = mouse.hidchar;
+  char *graph_mem;
+  int i;
 
-  /* save old char/attr pair */
-  mouse.hidx = mouse.cx;
-  mouse.hidy = mouse.cy;
-  mouse.hidchar = p[mouse.cx + mouse.cy * 80];
+  if (gfx_cursor)
+  {
+    open_kmem();		/* Open KMEM for graphics screen access */
+    graph_mem = (char *) mmap((caddr_t) GRAPH_BASE,
+				(size_t) (GRAPH_SIZE),
+				PROT_READ | PROT_WRITE,
+				MAP_SHARED | MAP_FIXED,
+				mem_fd,
+				GRAPH_BASE);
+    close_kmem();
+
+    for (i = 0; i < HEIGHT; i++) 
+      graph_mem[(mouse.x / 8) + ((mouse.y + i - 8)*80)] = mousecursormask[i];
+  } else {
+    unsigned short *p = SCREEN_ADR(bios_current_screen_page);
+
+    p[mouse.hidx + mouse.hidy * 80] = mouse.hidchar;
+
+    /* save old char/attr pair */
+    mouse.hidx = mouse.cx;
+    mouse.hidy = mouse.cy;
+    mouse.hidchar = p[mouse.cx + mouse.cy * 80];
 
-  p[mouse.cx + mouse.cy * 80] = 0x0b5c;
+    p[mouse.cx + mouse.cy * 80] = 0x0b00;
+  }
 }
 
 void
diff -u --recursive --new-file dosemu0.51old//net/Makefile dosemu0.51//net/Makefile
--- dosemu0.51old//net/Makefile	Thu Jun  2 22:04:28 1994
+++ dosemu0.51//net/Makefile	Sun Jun  5 18:45:32 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 SUBDIR=net
 
 # let gcc do extended checking
diff -u --recursive --new-file dosemu0.51old//ports.h dosemu0.51//ports.h
--- dosemu0.51old//ports.h	Thu Jun  2 22:04:14 1994
+++ dosemu0.51//ports.h	Sun Jun  5 18:45:00 1994
@@ -1,12 +1,15 @@
 #define PORTS_H 1
 
 /* 
- * $Date: 1994/05/30 00:08:20 $
+ * $Date: 1994/06/05 21:17:35 $
  * $Source: /home/src/dosemu0.60/RCS/ports.h,v $
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
  * $State: Exp $
  *
  * $Log: ports.h,v $
+ * Revision 1.15  1994/06/05  21:17:35  root
+ * Prep for pre51_24.
+ *
  * Revision 1.14  1994/05/30  00:08:20  root
  * Prep for pre51_22 and temp kludge fix for dir a: error.
  *
@@ -122,7 +125,7 @@
 
   case 0x40:
 #if 1 /* 05/17/94 Added to sigalrm */
-    pit.CNTR0 -= 0xff;
+    pit.CNTR0 += 0x2221;
 #endif
     i_printf("inb [0x40] = 0x%02x  1st timer inb\n",
 	     pit.CNTR0);
@@ -129,7 +132,7 @@
     return pit.CNTR0;
   case 0x41:
 #if 1 /* 05/17/94 Added to sigalrm */
-    pit.CNTR1 -= 0xff;
+    pit.CNTR1 += 0x2221;
 #endif
     i_printf("inb [0x41] = 0x%02x  2nd timer inb\n",
 	     pit.CNTR1);
@@ -136,7 +139,7 @@
     return pit.CNTR1;
   case 0x42:
 #if 1 /* 05/17/94 Added to sigalrm */
-    pit.CNTR2 -= 0xff;
+    pit.CNTR2 += 0x2221;
 #endif
     i_printf("inb [0x42] = 0x%02x  3rd timer inb\n",
 	     pit.CNTR2);
@@ -167,7 +170,7 @@
       return (tmp);
     }
     i_printf("default inb [0x%x] = 0x%02x\n", port, (LWORD(eax) & 0xFF));
-    return 0;
+    return 0xff;
   }
   return 0;
 }
diff -u --recursive --new-file dosemu0.51old//timer/Makefile dosemu0.51//timer/Makefile
--- dosemu0.51old//timer/Makefile	Thu Jun  2 22:04:28 1994
+++ dosemu0.51//timer/Makefile	Sun Jun  5 18:45:32 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 
 # let gcc do extended checking
 
diff -u --recursive --new-file dosemu0.51old//video/Makefile dosemu0.51//video/Makefile
--- dosemu0.51old//video/Makefile	Thu Jun  2 22:04:22 1994
+++ dosemu0.51//video/Makefile	Sun Jun  5 18:45:29 1994
@@ -8,7 +8,8 @@
 CC   = gcc
 LD   = ld
 
-INCDIR= -I../include -I..
+# INCDIR is exported from ..
+#INCDIR= -I../include -I..
 
 # let gcc do extended checking
 
diff -u --recursive --new-file dosemu0.51old//xms.c dosemu0.51//xms.c
--- dosemu0.51old//xms.c	Thu Jun  2 22:04:13 1994
+++ dosemu0.51//xms.c	Sun Jun  5 18:45:00 1994
@@ -1,12 +1,15 @@
 /* xms.c for the DOS emulator
  *       Robert Sanders, gt8134b@prism.gatech.edu
  *
- * $Date: 1994/05/04 21:56:55 $
+ * $Date: 1994/06/05 21:42:42 $
  * $Source: /home/src/dosemu0.60/RCS/xms.c,v $
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
  * $State: Exp $
  *
  * $Log: xms.c,v $
+ * Revision 1.15  1994/06/05  21:42:42  root
+ * prePrep for pre51_24.
+ *
  * Revision 1.14  1994/05/04  21:56:55  root
  * Prior to Alan's mouse patches.
  *
@@ -99,7 +102,7 @@
  * the 1 MEG mark.  ugly.  fix this.
  */
 
-static char RCSxms[] = "$Header: /home/src/dosemu0.60/RCS/xms.c,v 1.14 1994/05/04 21:56:55 root Exp root $";
+static char RCSxms[] = "$Header: /home/src/dosemu0.60/RCS/xms.c,v 1.15 1994/06/05 21:42:42 root Exp root $";
 
 #define	 XMS_GET_VERSION		0x00
 #define	 XMS_ALLOCATE_HIGH_MEMORY	0x01
@@ -306,7 +309,7 @@
   for (i = 0; i < UMBS; i++) {
     if (umbs[i].in_use &&
 	((addr >= umbs[i].addr) &&
-	 (addr <= (umbs[i].addr + umbs[i].size)))) {
+	 (addr < (umbs[i].addr + umbs[i].size)))) {
       return (i);
     }
   }
