-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support new OPL proxy with dynamic address
- Loading branch information
Showing
27 changed files
with
505 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* OPL3 chip interface proxy for OPL Bank Editor by Wohlstand, | ||
* a part of free tool for music bank editing | ||
* | ||
* Copyright (c) 2016-2018 Vitaly Novichkov <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* | ||
Can be built by mingw-w64 | ||
*/ | ||
|
||
#include "InpOut32Helper.h" | ||
|
||
#define DLLExport __declspec(dllexport) | ||
#define STDCall __stdcall | ||
typedef unsigned short uint16_t; | ||
|
||
static uint16_t OPLBase = 0x388; | ||
|
||
DLLExport void STDCall chipInit(void) | ||
{ OpenInpOut32(); } | ||
|
||
DLLExport void STDCall chipSetPort(uint16_t port) | ||
{ OPLBase = port; } | ||
|
||
DLLExport void STDCall chipUnInit(void) | ||
{ CloseInpOut32(); } | ||
|
||
DLLExport void STDCall chipPoke(uint16_t index, uint16_t value) | ||
{ | ||
uint16_t c, o = (index >> 8), port = (OPLBase + o * 2); | ||
outportb(port, index); | ||
for(c = 0; c < 6; ++c) inportb(port); | ||
outportb(port + 1, value); | ||
for(c = 0; c < 35; ++c) inportb(port); | ||
} | ||
|
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.lib | ||
!liboplproxy.dll | ||
*.map | ||
*.lk1 | ||
*.mk1 | ||
*.sym | ||
*.mk | ||
*.obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OPL Proxy - a small backend tool created for OPL Bank Editor by Wohlstand | ||
to provide ability to test instruments on real OPL3 chip by running under Windows 98. | ||
|
||
On Windows NT family operating system this trick will not work. | ||
|
||
Build this tool by OpenWatcom |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
40 | ||
targetIdent | ||
0 | ||
MProject | ||
1 | ||
MComponent | ||
0 | ||
2 | ||
WString | ||
4 | ||
NDLL | ||
3 | ||
WString | ||
5 | ||
n_2d9 | ||
1 | ||
0 | ||
1 | ||
4 | ||
MCommand | ||
0 | ||
5 | ||
MCommand | ||
0 | ||
6 | ||
MItem | ||
15 | ||
liboplproxy.dll | ||
7 | ||
WString | ||
4 | ||
NDLL | ||
8 | ||
WVList | ||
4 | ||
9 | ||
MRState | ||
10 | ||
WString | ||
5 | ||
WLINK | ||
11 | ||
WString | ||
25 | ||
?????No debug information | ||
1 | ||
1 | ||
12 | ||
MRState | ||
13 | ||
WString | ||
5 | ||
WLINK | ||
14 | ||
WString | ||
14 | ||
?????Debug all | ||
1 | ||
0 | ||
15 | ||
MCState | ||
16 | ||
WString | ||
5 | ||
WLINK | ||
17 | ||
WString | ||
13 | ||
?????Map file | ||
1 | ||
0 | ||
18 | ||
MCState | ||
19 | ||
WString | ||
5 | ||
WLINK | ||
20 | ||
WString | ||
24 | ||
?????Eliminate dead code | ||
1 | ||
1 | ||
21 | ||
WVList | ||
1 | ||
22 | ||
ActionStates | ||
23 | ||
WString | ||
5 | ||
&Make | ||
24 | ||
WVList | ||
0 | ||
-1 | ||
1 | ||
1 | ||
0 | ||
25 | ||
WPickList | ||
2 | ||
26 | ||
MItem | ||
3 | ||
*.c | ||
27 | ||
WString | ||
4 | ||
COBJ | ||
28 | ||
WVList | ||
0 | ||
29 | ||
WVList | ||
0 | ||
-1 | ||
1 | ||
1 | ||
0 | ||
30 | ||
MItem | ||
10 | ||
oplproxy.c | ||
31 | ||
WString | ||
4 | ||
COBJ | ||
32 | ||
WVList | ||
1 | ||
33 | ||
MCState | ||
34 | ||
WString | ||
3 | ||
WCC | ||
35 | ||
WString | ||
26 | ||
?????Force ANSI compliance | ||
1 | ||
1 | ||
36 | ||
WVList | ||
0 | ||
26 | ||
1 | ||
1 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Microsoft (R) COFF/PE Dumper Version 14.00.24215.1 | ||
Copyright (C) Microsoft Corporation. All rights reserved. | ||
|
||
|
||
Dump of file liboplproxy.dll | ||
|
||
File Type: DLL | ||
|
||
Section contains the following exports for liboplproxy.dll | ||
|
||
00000000 characteristics | ||
0 time date stamp | ||
0.00 version | ||
1 ordinal base | ||
3 number of functions | ||
3 number of names | ||
|
||
ordinal hint RVA name | ||
|
||
1 0 00001010 _chipInit@0 | ||
3 1 0000104A _chipPoke@8 | ||
2 2 0000102D _chipUnInit@0 | ||
|
||
Summary | ||
|
||
1000 .edata | ||
1000 .idata | ||
1000 .reloc | ||
6000 AUTO | ||
3000 DGROUP |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
40 | ||
projectIdent | ||
0 | ||
VpeMain | ||
1 | ||
WRect | ||
232 | ||
110 | ||
7872 | ||
8400 | ||
2 | ||
MProject | ||
3 | ||
MCommand | ||
0 | ||
4 | ||
MCommand | ||
0 | ||
1 | ||
5 | ||
WFileName | ||
15 | ||
liboplproxy.tgt | ||
6 | ||
WVList | ||
1 | ||
7 | ||
VComponent | ||
8 | ||
WRect | ||
416 | ||
410 | ||
5712 | ||
4360 | ||
0 | ||
0 | ||
9 | ||
WFileName | ||
15 | ||
liboplproxy.tgt | ||
0 | ||
1 | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\dumpbin.exe" /exports liboplproxy.dll > liboplproxy_exports.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.