|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.4, 2008/06/02 20:07:32 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "iocore.h" | |
| #include "sound.h" | #include "sound.h" |
| #include "sndctrl.h" | #include "sndctrl.h" |
| #include "x1f.h" | #include "x1f.h" |
| Line 18 typedef struct { | Line 19 typedef struct { |
| static _X1F x1f; | static _X1F x1f; |
| extern UINT8 fmop[256]; | |
| static void writedata(X1F hdl, REG16 value) { | static void writedata(X1F hdl, REG16 value) { |
| UINT8 *ptr; | UINT8 *ptr; |
| Line 50 static void setdata(X1F hdl, REG16 value | Line 48 static void setdata(X1F hdl, REG16 value |
| } | } |
| // ---- | /* ---- */ |
| BRESULT x1f_open(const OEMCHAR *filename) { | BRESULT x1f_open(const OEMCHAR *filename) { |
| Line 62 BRESULT x1f_open(const OEMCHAR *filename | Line 60 BRESULT x1f_open(const OEMCHAR *filename |
| if (fh == FILEH_INVALID) { | if (fh == FILEH_INVALID) { |
| return(FAILURE); | return(FAILURE); |
| } | } |
| CopyMemory(buf, fmop, 256); | #if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM) |
| CopyMemory(buf, sndboard.opmdat, 256); | |
| #else | |
| ZeroMemory(buf, 256); | |
| #endif | |
| CopyMemory(buf, "X1F", 4); | CopyMemory(buf, "X1F", 4); |
| file_write(fh, fmop, 256); | file_write(fh, buf, 256); |
| x1f.enable = 1; | x1f.enable = 1; |
| x1f.fh = fh; | x1f.fh = fh; |
| Line 87 void x1f_close(void) { | Line 89 void x1f_close(void) { |
| } | } |
| } | } |
| #if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM) | |
| void x1f_opm(REG8 reg, REG8 dat) { | void x1f_opm(REG8 reg, REG8 dat) { |
| if (x1f.enable) { | if (x1f.enable) { |
| Line 95 void x1f_opm(REG8 reg, REG8 dat) { | Line 98 void x1f_opm(REG8 reg, REG8 dat) { |
| } | } |
| } | } |
| } | } |
| #endif | |
| void x1f_psg(REG8 reg, REG8 dat) { | void x1f_psg(REG8 reg, REG8 dat) { |