|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.2, 2004/08/05 11:30:12 |
|---|---|
| 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 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); | CopyMemory(buf, sndboard.opmdat, 256); |
| 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; |