aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--memdisk/msetup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/memdisk/msetup.c b/memdisk/msetup.c
index 24282dd1..d5036d8f 100644
--- a/memdisk/msetup.c
+++ b/memdisk/msetup.c
@@ -143,17 +143,17 @@ void parse_mem(void)
else
dos_mem = ep[1].start;
}
- if ( ep->start <= 0x100000 && ep[1].start > 0x100000 ) {
- if ( ep[1].start > 0x1000000 )
- low_mem = 0x1000000 - ep->start;
+ if ( ep->start <= 0x00100000 && ep[1].start > 0x00100000 ) {
+ if ( ep[1].start > 0x01000000 )
+ low_mem = 0x01000000 - 0x00100000;
else
- low_mem = ep[1].start - ep->start;
+ low_mem = ep[1].start - 0x00100000;
}
- if ( ep->start <= 0x1000000 && ep[1].start > 0x1000000 ) {
+ if ( ep->start <= 0x01000000 && ep[1].start > 0x01000000 ) {
if ( ep[1].start > 0x100000000 )
- high_mem = 0x100000000 - ep->start;
+ high_mem = 0x100000000 - 0x01000000;
else
- high_mem = ep[1].start - ep->start;
+ high_mem = ep[1].start - 0x01000000;
}
}
}