From: sparky4 Date: Tue, 23 Jun 2015 16:52:55 +0000 (-0500) Subject: too many errors!! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=232403017807bf116f933dec1ce816e6cbada38a;p=16.git too many errors!! modified: 16/cawat/16_mm.c --- 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:; }