]> 4ch.mooo.com Git - 16.git/commitdiff
ok
authorsparky4 <sparky4@cock.li>
Sat, 12 Sep 2015 08:54:02 +0000 (03:54 -0500)
committersparky4 <sparky4@cock.li>
Sat, 12 Sep 2015 08:54:02 +0000 (03:54 -0500)
modified:   src/vgmtest.c
modified:   vgmtest.exe

src/vgmtest.c
vgmtest.exe

index 5245604e6bfa158441b35075fd78692806242f17..6819e40d8c86521b31d8eb666bbbd26bc0e33978 100755 (executable)
@@ -24,7 +24,8 @@
  */\r
 \r
 #include "src/lib/vgmsnd/vgmSnd.h"\r
-#include "src/lib/doslib/adlib.h"\r
+#include "src/lib/16_snd.h"\r
+//#include "src/lib/doslib/adlib.h"\r
 #include "src/lib/16_in.h"\r
 \r
 void OPL2_Write(UINT8 reg, UINT8 data);\r
@@ -34,15 +35,15 @@ void OPL2_Write(UINT8 reg, UINT8 data)
 {\r
        //ym3812_w(0, 0, reg);\r
        //ym3812_w(0, 1, data);\r
-       //opl2out(reg, data);\r
-       adlib_write((word) reg,(byte)data);\r
+       opl2out(reg, data);\r
+       //adlib_write((word) reg,(byte)data);\r
        return;\r
 }\r
 \r
 UINT8 OPL2_ReadStatus(void)\r
 {\r
-       //return(inp(ADLIB_FM_ADDRESS));\r
-       return (UINT8)adlib_read(0);\r
+       return(inp(ADLIB_FM_ADDRESS));\r
+       //return (UINT8)adlib_read(0);\r
        //return ym3812_r(0, 0);\r
 }\r
 \r
index d0988425b29d7e5287bda845db5ed7d6adb66c4d..87c3056cb72c68fd8618d8c97ee0074163acf758 100755 (executable)
Binary files a/vgmtest.exe and b/vgmtest.exe differ