OSDN Git Service
(root)
/
proj16
/
16.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac7708
)
ENTIRE EMS ALLOCATED IF EMS 4.0!
author
sparky4
<sparky4@cock.li>
Fri, 3 Jul 2015 06:49:07 +0000
(
01:49
-0500)
committer
sparky4
<sparky4@cock.li>
Fri, 3 Jul 2015 06:49:07 +0000
(
01:49
-0500)
modified: exmmtest.exe
modified: src/lib/16_mm.c
exmmtest.exe
patch
|
blob
|
history
src/lib/16_mm.c
patch
|
blob
|
history
diff --git
a/exmmtest.exe
b/exmmtest.exe
index
5f74fc4
..
0cda686
100644
(file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
diff --git
a/src/lib/16_mm.c
b/src/lib/16_mm.c
index
7ca7cea
..
530bc45
100644
(file)
--- a/
src/lib/16_mm.c
+++ b/
src/lib/16_mm.c
@@
-175,6
+175,14
@@
unsigned MML_SetupEMS(mminfo_t *mm)
or bx,bx
jz noEMS // no EMS at all to allocate
//++++EXPAND DONG!!!!
+ cmp [EMSVer],0x40
+ jb low
+ cmp bx,[freeEMSpages]
+ jle getpages
+ mov bx,[freeEMSpages]
+ jmp getpages
+
+low:
cmp bx,4
jle getpages // there is only 1,2,3,or 4 pages
mov bx,4 // we can't use more than 4 pages