From: sparky4 Date: Mon, 14 Sep 2015 18:59:03 +0000 (-0500) Subject: wtf?!?! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1b00b653e5ec0033f361a98043e5eb0d1ce16011;p=16.git wtf?!?! new file: DEBUG.16W new file: HEAP.16W new file: MMDUMP.16W new file: PROFILE.16W modified: makefile modified: src/vgmtest.c modified: vgmtest.exe --- diff --git a/DEBUG.16W b/DEBUG.16W new file mode 100755 index 00000000..29819988 --- /dev/null +++ b/DEBUG.16W @@ -0,0 +1,17 @@ +Seg:0 Size:5153 Owner:0xec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ +0 +Seg:1421 Size:256 Owner:0x451c +++++_ + +Seg:1521 Size:273 Owner:0x858c ++++++_ + +Seg:1b88 Size:40 Owner:0x0 ++_ +00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +Seg:abb0 Size:13392 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ + +Seg:e000 Size:8191 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ \ No newline at end of file diff --git a/HEAP.16W b/HEAP.16W new file mode 100755 index 00000000..6c8a34a2 --- /dev/null +++ b/HEAP.16W @@ -0,0 +1,45 @@ + + == default == + + USED block at 1baa0016 of size 66 + FREE block at 1baa0058 of size 18 + USED block at 1baa006a of size 136 + USED block at 1baa00f2 of size 20 + FREE block at 1baa0106 of size 7926 +OK - end of heap + + == near == + + USED block at ba985b6 of size 12 + USED block at ba985c2 of size 294 + USED block at ba986e8 of size 42 + USED block at ba98712 of size 20 + USED block at ba98726 of size 20 + USED block at ba9873a of size 20 + USED block at ba9874e of size 20 + USED block at ba98762 of size 20 + USED block at ba98776 of size 30854 +OK - end of heap + + == far == + + USED block at 1baa0016 of size 66 + USED block at 1baa0058 of size 18 + USED block at 1baa006a of size 136 + USED block at 1baa00f2 of size 20 + USED block at 1baa0106 of size 7926 +OK - end of heap + +Memory Type Total Used Free +---------------- -------- -------- -------- +Default 8166 222 7944 +Near 31302 448 30854 +Far 8166 222 7944 +---------------- -------- -------- -------- +coreleft = 30852 +farcoreleft = 46792 +GetFreeSize = 15960 +GetNearFreeSize = 30854 +GetFarFreeSize = 15960 +memavl = 30852 +stackavail = 15126 diff --git a/MMDUMP.16W b/MMDUMP.16W new file mode 100755 index 00000000..67e0f1d6 Binary files /dev/null and b/MMDUMP.16W differ diff --git a/PROFILE.16W b/PROFILE.16W new file mode 100755 index 00000000..e69de29b diff --git a/makefile b/makefile index 7590c364..ff593e97 100755 --- a/makefile +++ b/makefile @@ -129,8 +129,8 @@ fmemtest.exe: fmemtest.$(OBJ) 16.lib exmmtest.exe: exmmtest.$(OBJ) 16.lib wcl $(FLAGS) exmmtest.$(OBJ) 16.lib -fm=exmmtest.map -vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib - wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.map +vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib 16.lib + wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.map 16.lib #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.map diff --git a/src/vgmtest.c b/src/vgmtest.c index 1f5deeaf..a4e5f727 100755 --- a/src/vgmtest.c +++ b/src/vgmtest.c @@ -26,7 +26,7 @@ #include "src/lib/vgmsnd/vgmSnd.h" #include "src/lib/16_snd.h" //#include "src/lib/doslib/adlib.h" -//#include "src/lib/16_in.h" +#include "src/lib/16_in.h" void OPL2_Write(UINT8 reg, UINT8 data); UINT8 OPL2_ReadStatus(void); @@ -48,27 +48,27 @@ UINT8 OPL2_ReadStatus(void) void main(int argc, char *argv[]) { - //global_game_variables_t gvar; + global_game_variables_t gvar; VGM_FILE pee[9]; - //player_t player[MaxPlayers]; + player_t player[MaxPlayers]; char *bakapee; bakapee = malloc(64); if(argv[1]) bakapee = argv[1]; else bakapee = "data/0.vgm"; printf("%x\n", OpenVGMFile(bakapee, &pee[0])); - //IN_Startup(); - //IN_Default(0,&player,ctrl_Joystick); + IN_Startup(); + IN_Default(0,&player,ctrl_Joystick); InitEngine(); PlayMusic(&pee[0]); - //while(!IN_KeyDown(sc_Escape)) - while(!kbhit()) + while(!IN_KeyDown(sc_Escape)) + //while(!kbhit()) { - //IN_ReadControl(0,&player); + IN_ReadControl(0,&player); UpdateSoundEngine(); } StopMusic(); FreeVGMFile(&pee[0]); - //IN_Shutdown(); + IN_Shutdown(); DeinitEngine(); } diff --git a/vgmtest.exe b/vgmtest.exe index 5a8ecc5a..72836e54 100755 Binary files a/vgmtest.exe and b/vgmtest.exe differ