From: sparky4 Date: Sat, 12 Sep 2015 08:54:02 +0000 (-0500) Subject: ok X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1e5c19f654161b86901ea7df13f04c76e3353189;p=16.git ok modified: src/vgmtest.c modified: vgmtest.exe --- diff --git a/src/vgmtest.c b/src/vgmtest.c index 5245604e..6819e40d 100755 --- a/src/vgmtest.c +++ b/src/vgmtest.c @@ -24,7 +24,8 @@ */ #include "src/lib/vgmsnd/vgmSnd.h" -#include "src/lib/doslib/adlib.h" +#include "src/lib/16_snd.h" +//#include "src/lib/doslib/adlib.h" #include "src/lib/16_in.h" void OPL2_Write(UINT8 reg, UINT8 data); @@ -34,15 +35,15 @@ void OPL2_Write(UINT8 reg, UINT8 data) { //ym3812_w(0, 0, reg); //ym3812_w(0, 1, data); - //opl2out(reg, data); - adlib_write((word) reg,(byte)data); + opl2out(reg, data); + //adlib_write((word) reg,(byte)data); return; } UINT8 OPL2_ReadStatus(void) { - //return(inp(ADLIB_FM_ADDRESS)); - return (UINT8)adlib_read(0); + return(inp(ADLIB_FM_ADDRESS)); + //return (UINT8)adlib_read(0); //return ym3812_r(0, 0); } diff --git a/vgmtest.exe b/vgmtest.exe index d0988425..87c3056c 100755 Binary files a/vgmtest.exe and b/vgmtest.exe differ