int 0x67\r
or ah,ah\r
js InternalError /* returns 80, 81, or 84 hex on error */\r
- mov Pages,bx /* number of unallocated 16K pages */\r
+ mov Pages,bx /* number of unallocated 16K pages */
+ InternalError:
+ ret\r
}\r
RtnVal = ((unsigned long)Pages << 14); /* Pages * 16K rtns bytes*/\r
\r
-InternalError:\r
+//InternalError:\r
return(RtnVal);\r
} /* End of EMMCoreLeft() */\r
\r
mov dx,Handle\r
int 0x67\r
or ah,ah\r
- js NoGo /* returns 80 to 88 hex on error */\r
+ js NoGo /* returns 80 to 88 hex on error */
+ NoGo:
+ ret\r
}\r
RtnCode = TRUE;\r
\r
-NoGo:\r
-\r
+//NoGo:\r
return(RtnCode);\r
} /* End of EMMRealloc() */\r
\r
mov ah,0x40 /* get EM Manager Status */\r
int 0x67\r
or ah,ah\r
- jns Ready /* returns 80, 81, or 84 hex on error */\r
+ jns Ready /* returns 80, 81, or 84 hex on error */
+ Ready:
+ ret\r
}\r
return(FALSE);\r
\r
-Ready:\r
- return(TRUE);\r
+//Ready:\r
+// return(TRUE);\r
} /* End of EMReady() */\r
\r
/********************************************************************/\r
int 0x67\r
or ah,ah\r
js NotReady /* returns 80, 81, or 84 hex on error */\r
- mov EMSegment,bx\r
+ mov EMSegment,bx
+ NotReady:
+ ret\r
}\r
return(EMSegment); /*lint !e530 */\r
\r
-NotReady:\r
- return(NOTREADY);\r
+//NotReady:\r
+// return(NOTREADY);\r
} /* End of GetEMMSeg() */\r
\r
/********************************************************************/\r
int 0x67\r
or ah,ah /* returns 80 to 89 hex on error */\r
js NoHandle\r
- mov NewHandle,dx /* retrieve handle */\r
+ mov NewHandle,dx /* retrieve handle */
+ NoHandle:
+ ret\r
}\r
return(NewHandle);\r
\r
-NoHandle:\r
- return(NO_DATA);\r
+//NoHandle:\r
+// return(NO_DATA);\r
} /* End of GetEMHandle() */\r
\r
/********************************************************************/\r
mov dx,Handle\r
int 0x67\r
or ah,ah /* returns 80 to 8B hex on error */\r
- js NoMapping\r
+ js NoMapping
+ NoMapping:
+ ret\r
}\r
RtnCode = SUCCESS;\r
\r
-NoMapping:\r
+//NoMapping:\r
return(RtnCode);\r
} /* End of EMMap() */\r
\r
mov dx,Handle\r
int 0x67\r
or ah,ah /* returns 80 to 86 hex on error */\r
- js NotFreed\r
+ js NotFreed
+ NotFreed: /* must retry if unsuccessful */
+ ret\r
}\r
return(SUCCESS);\r
\r
-NotFreed: /* must retry if unsuccessful */\r
- return(NO_DATA);\r
+//NotFreed: /* must retry if unsuccessful */\r
+// return(NO_DATA);\r
} /* End of FreeEMHandle() */\r
\r
/********************************************************************/\r
int 0x67\r
or ah,ah /* returns 80 to 84 hex on error */\r
js BadHandle\r
- mov NumPages,bx\r
- }\r
-BadHandle:\r
+ mov NumPages,bx
+ BadHandle:
+ ret\r
+ }
\r
+//BadHandle:\r
return(NumPages);\r
} /* End of GetNumPages() */\r
\r
mov dx,Handle\r
int 0x67\r
or ah,ah\r
- js Unsaved /* out of save space error */\r
+ js Unsaved /* out of save space error */
+ Unsaved:
+ ret\r
}\r
RtnCode = SUCCESS;\r
\r
-Unsaved:\r
+//Unsaved:\r
return(RtnCode);\r
} /* End of EMStateSave() */\r
\r
-memory.c(92): Error! E1011: Symbol 'InternalError' has not been declared
-memory.c(97): Warning! W118: Label 'InternalError' has been defined but not referenced
-memory.c(144): Error! E1011: Symbol 'NoGo' has not been declared
-memory.c(150): Warning! W118: Label 'NoGo' has been defined but not referenced
-memory.c(259): Error! E1011: Symbol 'Ready' has not been declared
-memory.c(264): Warning! W118: Label 'Ready' has been defined but not referenced
-memory.c(279): Error! E1011: Symbol 'NotReady' has not been declared
-memory.c(284): Warning! W118: Label 'NotReady' has been defined but not referenced
-memory.c(300): Error! E1011: Symbol 'NoHandle' has not been declared
-memory.c(305): Warning! W118: Label 'NoHandle' has been defined but not referenced
-memory.c(322): Error! E1011: Symbol 'NoMapping' has not been declared
-memory.c(327): Warning! W118: Label 'NoMapping' has been defined but not referenced
-memory.c(340): Error! E1011: Symbol 'NotFreed' has not been declared
-memory.c(345): Warning! W118: Label 'NotFreed' has been defined but not referenced
-memory.c(361): Error! E1011: Symbol 'BadHandle' has not been declared
-memory.c(365): Warning! W118: Label 'BadHandle' has been defined but not referenced
-memory.c(379): Error! E1011: Symbol 'Unsaved' has not been declared
-memory.c(384): Warning! W118: Label 'Unsaved' has been defined but not referenced
+Open Watcom C16 Optimizing Compiler Version 1.9\r
+Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.\r
+Source code is available under the Sybase Open Watcom Public License.\r
+See http://www.openwatcom.org/ for details.\r
+memory.c: 413 lines, included 1940, 0 warnings, 0 errors\r
+Code size: 1534\r