From 232403017807bf116f933dec1ce816e6cbada38a Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 23 Jun 2015 11:52:55 -0500 Subject: [PATCH] too many errors!! modified: 16/cawat/16_mm.c --- 16/cawat/16_mm.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/16/cawat/16_mm.c b/16/cawat/16_mm.c index cf36d26c..2da0d658 100644 --- a/16/cawat/16_mm.c +++ b/16/cawat/16_mm.c @@ -181,11 +181,13 @@ boolean MML_CheckForEMS (void) void MML_SetupEMS (void) { char str[80],str2[10]; - unsigned error; + unsigned err; + struct REGS CPURegs; totalEMSpages = freeEMSpages = EMSpageframe = EMSpagesmapped = 0; - __asm { + __asm + { mov ah,EMS_STATUS int EMS_INT // make sure EMS hardware is present or ah,ah @@ -226,11 +228,11 @@ getpages: mov [EMShandle],dx jmp End error: - error = _AH; - strcpy (str,"MML_SetupEMS: EMS error 0x"); - itoa(error,str2,16); - strcpy (str,str2); - printf("%s\n",str); +// err = CPURegs.h.ah; +// strcpy (str,"MML_SetupEMS: EMS error 0x"); +// itoa(err,str2,16); +// strcpy (str,str2); +// printf("%s\n",str); jmp End noEMS: End: @@ -373,7 +375,8 @@ getmemory: gotone: mov [base],bx - mov [size],dx + mov [size],dx + done: } MML_UseSpace (base,size); mminfo.XMSmem += size*16; @@ -381,8 +384,6 @@ gotone: numUMBs++; if (numUMBs < MAXUMBS) goto getmemory; - -done:; } -- 2.39.5