aboutsummaryrefslogtreecommitdiffstats
path: root/src/dos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dos.c')
-rw-r--r--src/dos.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dos.c b/src/dos.c
index 84a6816..3d916e5 100644
--- a/src/dos.c
+++ b/src/dos.c
@@ -2052,7 +2052,12 @@ void init_dos(int argc, char **argv)
// Init memory handling - available start address at 0x800,
// ending address at 0xA0000.
- mcb_init(0x80, 0xA000);
+ // We limit here memory to less than 512K to fix some old programs
+ // that check memori using "JLE" instead of "JBE".
+ if(getenv(ENV_LOWMEM))
+ mcb_init(0x80, 0x7FFF);
+ else
+ mcb_init(0x80, 0xA000);
// Init SYSVARS
dos_sysvars = get_static_memory(128, 0);
Un proyecto texto-plano.xyz