]> 4ch.mooo.com Git - 16.git/commitdiff
hmm where else is PM used... added PM_NextFrame ohh also readded led light control
authorsparky4 <sparky4@cock.li>
Mon, 27 Feb 2017 23:20:50 +0000 (17:20 -0600)
committersparky4 <sparky4@cock.li>
Mon, 27 Feb 2017 23:20:50 +0000 (17:20 -0600)
_pm_use.txt
_pm_use_.txt
src/lib/16_in.c

index f944a7e47e45a0e04177a563ee974a19d64a7aea..934d267f0074650fa1168b2521872444272fc269 100755 (executable)
@@ -1,5 +1,6 @@
 16/wf3d8086/contigsc.c:        shape = PM_GetSpritePage (shapenum);\r
 16/wf3d8086/contigsc.c:        shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wf3d8086/id_sd.c:   addr = PM_GetSoundPage(page);\r
 16/wf3d8086/id_sd.c:   PM_SetPageLock(PMSoundStart + page,pml_Locked);\r
 16/wf3d8086/id_sd.c:           PM_SetPageLock(i + PMSoundStart,pml_Unlocked);\r
@@ -7,37 +8,46 @@
 16/wf3d8086/id_sd.c:   PM_CheckMainMem();\r
 16/wf3d8086/id_sd.c:   p = (word far *)MK_FP(PM_GetPage(ChunksInFile - 1),0);\r
 16/wf3d8086/id_sd.c:   PM_UnlockMainMem();\r
-16/wf3d8086/oldscale.c:        shape = PM_GetSpritePage (shapenum);\r
-16/wf3d8086/oldscale.c:        shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wf3d8086/wl_act2.c: PM_UnlockMainMem ();\r
 16/wf3d8086/wl_act2.c: PM_CheckMainMem ();\r
+\r
 16/wf3d8086/wl_debug.c:                addr = PM_GetPageAddress(i);\r
 16/wf3d8086/wl_debug.c:                                PM_GetPage(j);\r
 16/wf3d8086/wl_debug.c:                        PM_GetPage(i);\r
+\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(doorpage);\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(doorpage+1);\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wf3d8086/wl_draw.c:         *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
+\r
 16/wf3d8086/wl_draw.c: PM_NextFrame();\r
+\r
 16/wf3d8086/wl_game.c: PM_UnlockMainMem();\r
 16/wf3d8086/wl_game.c: PM_CheckMainMem ();\r
 16/wf3d8086/wl_game.c: PM_CheckMainMem ();\r
 16/wf3d8086/wl_game.c:         PM_CheckMainMem ();\r
 16/wf3d8086/wl_game.c:                 PM_CheckMainMem ();\r
+\r
 16/wf3d8086/wl_inter.c:        PM_Preload (PreloadUpdate);\r
+\r
 16/wf3d8086/wl_main.c: PM_Shutdown ();\r
 16/wf3d8086/wl_main.c: PM_Startup ();\r
 16/wf3d8086/wl_main.c: PM_UnlockMainMem ();\r
+\r
 16/wf3d8086/wl_menu.c:                         PM_CheckMainMem ();\r
 16/wf3d8086/wl_menu.c:                         PM_CheckMainMem ();\r
+\r
 16/wf3d8086/wl_play.c:         PM_CheckMainMem ();\r
 16/wf3d8086/wl_play.c:  PM_CheckMainMem ();\r
 16/wf3d8086/wl_play.c:  PM_CheckMainMem ();\r
 16/wf3d8086/wl_play.c:         PM_CheckMainMem ();\r
 16/wf3d8086/wl_play.c:         PM_CheckMainMem ();\r
+\r
 16/wf3d8086/wl_scale.c:        shape = PM_GetSpritePage (shapenum);\r
 16/wf3d8086/wl_scale.c:        shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wf3d8086/wolfhack.c:        src = PM_GetPage(0);\r
 16/wf3d8086/wolfhack.c:        src = PM_GetPage(1);\r
index 09041618fb669dfba44d51dbf9ab1397d24e8718..23ead1002a4167e7e3eaed412fb62293ae91b73d 100755 (executable)
@@ -1,5 +1,6 @@
 16/wolf3d/WOLFSRC/CONTIGSC.C:  shape = PM_GetSpritePage (shapenum);\r
 16/wolf3d/WOLFSRC/CONTIGSC.C:  shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wolf3d/WOLFSRC/ID_SD.C:     addr = PM_GetSoundPage(page);\r
 16/wolf3d/WOLFSRC/ID_SD.C:     PM_SetPageLock(PMSoundStart + page,pml_Locked);\r
 16/wolf3d/WOLFSRC/ID_SD.C:             PM_SetPageLock(i + PMSoundStart,pml_Unlocked);\r
@@ -7,37 +8,46 @@
 16/wolf3d/WOLFSRC/ID_SD.C:     PM_CheckMainMem();\r
 16/wolf3d/WOLFSRC/ID_SD.C:     p = (word far *)MK_FP(PM_GetPage(ChunksInFile - 1),0);\r
 16/wolf3d/WOLFSRC/ID_SD.C:     PM_UnlockMainMem();\r
-16/wolf3d/WOLFSRC/OLDSCALE.C:  shape = PM_GetSpritePage (shapenum);\r
-16/wolf3d/WOLFSRC/OLDSCALE.C:  shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wolf3d/WOLFSRC/WL_ACT2.C:   PM_UnlockMainMem ();\r
 16/wolf3d/WOLFSRC/WL_ACT2.C:   PM_CheckMainMem ();\r
+\r
 16/wolf3d/WOLFSRC/WL_DEBUG.C:          addr = PM_GetPageAddress(i);\r
 16/wolf3d/WOLFSRC/WL_DEBUG.C:                          PM_GetPage(j);\r
 16/wolf3d/WOLFSRC/WL_DEBUG.C:                  PM_GetPage(i);\r
+\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(doorpage);\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(doorpage+1);\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:           *( ((unsigned *)&postsource)+1) = (unsigned)PM_GetPage(wallpic);\r
+\r
 16/wolf3d/WOLFSRC/WL_DRAW.C:   PM_NextFrame();\r
+\r
 16/wolf3d/WOLFSRC/WL_GAME.C:   PM_UnlockMainMem();\r
 16/wolf3d/WOLFSRC/WL_GAME.C:   PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_GAME.C:   PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_GAME.C:           PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_GAME.C:                   PM_CheckMainMem ();\r
+\r
 16/wolf3d/WOLFSRC/WL_INTER.C:  PM_Preload (PreloadUpdate);\r
+\r
 16/wolf3d/WOLFSRC/WL_MAIN.C:   PM_Shutdown ();\r
 16/wolf3d/WOLFSRC/WL_MAIN.C:   PM_Startup ();\r
 16/wolf3d/WOLFSRC/WL_MAIN.C:   PM_UnlockMainMem ();\r
+\r
 16/wolf3d/WOLFSRC/WL_MENU.C:                           PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_MENU.C:                           PM_CheckMainMem ();\r
+\r
 16/wolf3d/WOLFSRC/WL_PLAY.C:           PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_PLAY.C:    PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_PLAY.C:    PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_PLAY.C:           PM_CheckMainMem ();\r
 16/wolf3d/WOLFSRC/WL_PLAY.C:           PM_CheckMainMem ();\r
+\r
 16/wolf3d/WOLFSRC/WL_SCALE.C:  shape = PM_GetSpritePage (shapenum);\r
 16/wolf3d/WOLFSRC/WL_SCALE.C:  shape = PM_GetSpritePage (shapenum);\r
+\r
 16/wolf3d/WOLFSRC/WOLFHACK.C:  src = PM_GetPage(0);\r
 16/wolf3d/WOLFSRC/WOLFHACK.C:  src = PM_GetPage(1);\r
index 938675de9640f2e1671600fe8d45681beea99017..44c6aac1b04169c92e6b5bf7f6b8377235c74d3c 100755 (executable)
@@ -501,11 +501,17 @@ IN_GetJoyButtonsDB(word joy)
 static void\r
 INL_StartKbd()\r
 {\r
+       byte far *lock_key;\r
        INL_KeyHook = 0;        // Clear key hook\r
 \r
        IN_ClearKeysDown();\r
 \r
        OldKeyVect = _dos_getvect(KeyInt);\r
+\r
+       // turn off num-lock via BIOS\r
+       lock_key = MK_FP(0x040, 0x017); // Pointing to the address of the bios shift state keys\r
+       *lock_key&=(~(16 | 32 | 64)); // toggle off the locks by changing the values of the 4th, 5th, and 6th bits of the address byte of 0040:0017\r
+       OldKeyVect();   // call BIOS keyhandler to change keyboard lights\r
        _dos_setvect(KeyInt,INL_KeyService);\r
 }\r
 \r