=======================
*/
-unsigned MML_SetupEMS(mminfo_t *mm)
+byte MML_SetupEMS(mminfo_t *mm)
{
- char str[80],str2[10];
- unsigned err;
+ char str[80];//,str2[10];
+ byte err;
boolean errorflag=false;
union REGS CPURegs;
mov [EMShandle],dx
jmp End
error:
+ mov err,ah
mov errorflag,1
jmp End
noEMS:
}
if(errorflag==true)
{
- err = CPURegs.h.ah;
+ //err = CPURegs.h.ah;
strcpy(str,"MML_SetupEMS: EMS error 0x");
- itoa(err,str2,16);
- strcpy(str,str2);
- printf("%s\n",str);
+ //itoa(err,str2,16);
+ //strcat(str,&err);
+ //printf("%s\n",str);
+ printf("%s%x\n",str,err);
return err;
}
mm->totalEMSpages=totalEMSpages;
====================
*/
-unsigned MM_MapEMS(mminfo_t *mm)
+byte MM_MapEMS(mminfo_t *mm)
{
- char str[80],str2[10];
- unsigned err, EMShandle;
+ char str[80];//,str2[10];
+ unsigned /*err, */EMShandle;
+ byte err;
boolean errorflag=false;
int i;
union REGS CPURegs;
jnz error
jmp End
error:
+ mov err,ah
mov errorflag,1
End:
}
if(errorflag==true)
{
- err = CPURegs.h.ah;
+ //err = CPURegs.h.ah;
strcpy(str,"MM_MapEMS: EMS error 0x");
- itoa(err,str2,16);
- strcat(str,str2);
- printf("%s\n",str);
+ //itoa(err,str2,16);
+ //strcat(str,&err);
+ //printf("%s\n",str);
+ printf("%s%x\n",str, err);
//printf("FACK! %x\n", err);
return err;
}
//==========================================================================
boolean MML_CheckForEMS(void);
-unsigned MML_SetupEMS(mminfo_t *mm);
+byte MML_SetupEMS(mminfo_t *mm);
void MML_ShutdownEMS(mminfo_t *mm);
-unsigned MM_MapEMS(mminfo_t *mm);
+byte MM_MapEMS(mminfo_t *mm);
boolean MML_CheckForXMS(mminfo_t *mm);
void MML_SetupXMS(mminfo_t *mm, mminfotype *mmi);
void MML_ShutdownXMS(mminfo_t *mm);