|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.2, 2004/08/03 12:50:54 |
|---|---|
| Line 1 | Line 1 |
| #include <windows.h> | #include "compiler.h" |
| #include "romeo.h" | #include "romeo.h" |
| #include "juliet.h" | #include "juliet.h" |
| Line 52 typedef struct { | Line 52 typedef struct { |
| typedef struct { | typedef struct { |
| char *symbol; | const char *symbol; |
| int addr; | int addr; |
| } DLLPROCESS; | } DLLPROCESS; |
| static const char fnstr_finddev[] = FN_PCIFINDDEV; | |
| static const char fnstr_read32[] = FN_PCICFGREAD32; | |
| static const char fnstr_out8[] = FN_PCIMEMWR8; | |
| static const char fnstr_out16[] = FN_PCIMEMWR16; | |
| static const char fnstr_out32[] = FN_PCIMEMWR32; | |
| static const char fnstr_inp8[] = FN_PCIMEMRD8; | |
| static const char fnstr_inp16[] = FN_PCIMEMRD16; | |
| static const char fnstr_inp32[] = FN_PCIMEMRD32; | |
| static const DLLPROCESS dllproc[] = { | static const DLLPROCESS dllproc[] = { |
| {FN_PCIFINDDEV, ROMEO_TPTR(finddev)}, | {fnstr_finddev, ROMEO_TPTR(finddev)}, |
| {FN_PCICFGREAD32, ROMEO_TPTR(read32)}, | {fnstr_read32, ROMEO_TPTR(read32)}, |
| {FN_PCIMEMWR8, ROMEO_TPTR(out8)}, | {fnstr_out8, ROMEO_TPTR(out8)}, |
| {FN_PCIMEMWR16, ROMEO_TPTR(out16)}, | {fnstr_out16, ROMEO_TPTR(out16)}, |
| {FN_PCIMEMWR32, ROMEO_TPTR(out32)}, | {fnstr_out32, ROMEO_TPTR(out32)}, |
| {FN_PCIMEMRD8, ROMEO_TPTR(in8)}, | {fnstr_inp8, ROMEO_TPTR(in8)}, |
| {FN_PCIMEMRD16, ROMEO_TPTR(in16)}, | {fnstr_inp16, ROMEO_TPTR(in16)}, |
| {FN_PCIMEMRD32, ROMEO_TPTR(in32)}}; | {fnstr_inp32, ROMEO_TPTR(in32)}}; |
| static _ROMEO romeo = {NULL}; | static _ROMEO romeo = {NULL}; |
| static SINT8 YM2151vol = -12; | |
| static const BYTE FMoutop[] = {0x08, 0x08, 0x08, 0x08, 0x0c, 0x0e, 0x0e, 0x0f}; | static const UINT8 FMoutop[] = {0x08,0x08,0x08,0x08,0x0c,0x0e,0x0e,0x0f}; |
| static char YM2151vol = -12; | |
| BOOL juliet_load(void) { | BOOL juliet_load(void) { |
| int i; | int i; |
| const DLLPROCESS *dp; | const DLLPROCESS *dp; |
| BOOL r = SUCCESS; | BOOL r = SUCCESS; |
| juliet_unload(); | juliet_unload(); |
| romeo.mod = LoadLibrary(PCIDEBUG_DLL); | romeo.mod = LoadLibrary(OEMTEXT(PCIDEBUG_DLL)); |
| if (romeo.mod == NULL) { | if (romeo.mod == NULL) { |
| return(FAILURE); | return(FAILURE); |
| } | } |