From: sparky4 Date: Fri, 15 May 2015 17:02:21 +0000 (-0500) Subject: experimenting! wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=bd2713e5e316c67f08532a601349178d24d8067f;p=16.git experimenting! wwww modified: src/lib/exmm/EMM.EXE modified: src/lib/exmm/memory.c modified: src/lib/exmm/memory.ero --- diff --git a/src/lib/exmm/EMM.EXE b/src/lib/exmm/EMM.EXE index 5719e976..2232acee 100644 Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ diff --git a/src/lib/exmm/memory.c b/src/lib/exmm/memory.c index 519ec6cb..423c89ef 100644 --- a/src/lib/exmm/memory.c +++ b/src/lib/exmm/memory.c @@ -88,11 +88,13 @@ EMMCoreLeft(void) int 0x67 or ah,ah js InternalError /* returns 80, 81, or 84 hex on error */ - mov Pages,bx /* number of unallocated 16K pages */ + mov Pages,bx /* number of unallocated 16K pages */ + InternalError: + ret } RtnVal = ((unsigned long)Pages << 14); /* Pages * 16K rtns bytes*/ -InternalError: +//InternalError: return(RtnVal); } /* End of EMMCoreLeft() */ @@ -140,12 +142,13 @@ EMMRealloc(int Handle, int Pages) mov dx,Handle int 0x67 or ah,ah - js NoGo /* returns 80 to 88 hex on error */ + js NoGo /* returns 80 to 88 hex on error */ + NoGo: + ret } RtnCode = TRUE; -NoGo: - +//NoGo: return(RtnCode); } /* End of EMMRealloc() */ @@ -255,12 +258,14 @@ EMReady(void) mov ah,0x40 /* get EM Manager Status */ int 0x67 or ah,ah - jns Ready /* returns 80, 81, or 84 hex on error */ + jns Ready /* returns 80, 81, or 84 hex on error */ + Ready: + ret } return(FALSE); -Ready: - return(TRUE); +//Ready: +// return(TRUE); } /* End of EMReady() */ /********************************************************************/ @@ -275,12 +280,14 @@ GetEMMSeg(void) int 0x67 or ah,ah js NotReady /* returns 80, 81, or 84 hex on error */ - mov EMSegment,bx + mov EMSegment,bx + NotReady: + ret } return(EMSegment); /*lint !e530 */ -NotReady: - return(NOTREADY); +//NotReady: +// return(NOTREADY); } /* End of GetEMMSeg() */ /********************************************************************/ @@ -296,12 +303,14 @@ GetEMHandle(int NumPages) int 0x67 or ah,ah /* returns 80 to 89 hex on error */ js NoHandle - mov NewHandle,dx /* retrieve handle */ + mov NewHandle,dx /* retrieve handle */ + NoHandle: + ret } return(NewHandle); -NoHandle: - return(NO_DATA); +//NoHandle: +// return(NO_DATA); } /* End of GetEMHandle() */ /********************************************************************/ @@ -318,11 +327,13 @@ EMMap(int Handle, int LogPg, int PhyPg) mov dx,Handle int 0x67 or ah,ah /* returns 80 to 8B hex on error */ - js NoMapping + js NoMapping + NoMapping: + ret } RtnCode = SUCCESS; -NoMapping: +//NoMapping: return(RtnCode); } /* End of EMMap() */ @@ -336,12 +347,14 @@ FreeEMHandle(int Handle) mov dx,Handle int 0x67 or ah,ah /* returns 80 to 86 hex on error */ - js NotFreed + js NotFreed + NotFreed: /* must retry if unsuccessful */ + ret } return(SUCCESS); -NotFreed: /* must retry if unsuccessful */ - return(NO_DATA); +//NotFreed: /* must retry if unsuccessful */ +// return(NO_DATA); } /* End of FreeEMHandle() */ /********************************************************************/ @@ -357,10 +370,12 @@ GetNumPages(int Handle) int 0x67 or ah,ah /* returns 80 to 84 hex on error */ js BadHandle - mov NumPages,bx - } -BadHandle: + mov NumPages,bx + BadHandle: + ret + } +//BadHandle: return(NumPages); } /* End of GetNumPages() */ @@ -375,11 +390,13 @@ EMStateSave(int Handle) mov dx,Handle int 0x67 or ah,ah - js Unsaved /* out of save space error */ + js Unsaved /* out of save space error */ + Unsaved: + ret } RtnCode = SUCCESS; -Unsaved: +//Unsaved: return(RtnCode); } /* End of EMStateSave() */ diff --git a/src/lib/exmm/memory.ero b/src/lib/exmm/memory.ero index 164b6299..72220273 100644 --- a/src/lib/exmm/memory.ero +++ b/src/lib/exmm/memory.ero @@ -1,18 +1,6 @@ -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 +Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved. +Source code is available under the Sybase Open Watcom Public License. +See http://www.openwatcom.org/ for details. +memory.c: 413 lines, included 1940, 0 warnings, 0 errors +Code size: 1534