Argh, I don't believe how much time I wasted looking for this...

Bytes of extended memory = (extkb * 1024), not (extkb + 1024)
This commit is contained in:
Peter Wemm 1998-09-28 21:39:11 +00:00
parent 059b1b8277
commit 5eec23025f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ getextmem(void)
extkb = v86.eax & 0xffff;
/* Set memtop to actual top or 16M, whicheve is less */
memtop = min((0x100000 + (extkb + 1024)), (16 * 1024 * 1024));
memtop = min((0x100000 + (extkb * 1024)), (16 * 1024 * 1024));
return(extkb);
}