#include < stdio.h > #include < dos.h > void main(void) { // YM2203,YM2608,YMF288,YMF297} |
I/O Port | AT互換機 | PC-9821/9801 | ||||
WSS | SA/2/3/x | WSS | 86 | 118 | YMF715 | |
SB16 | - | 0x0220-0x022F | - | - | - | - |
OPL3 | - | 0x0388-0x038B | - | - | 0x1488-0x148B | 0x1488-0x148B |
OPN | - | - | - | 0x0188-0x018B | 0x0188-0x018B | - |
Board Control |
- | - | - | - | 0x0480-0x048F | - |
OPL3SA Control |
- | 0x0370-0x0371 (0x0310) (0x0538) |
- | - | - | 0x0480-0x0481 |
MIDI | - | 0x0330 | - | - | 0x148C-0x148D | 0x148C-0x148D |
WSS | 0x0530-0x0537 (0x0e80) (0x0f40) (0x0604) |
0x0530-0x0537 | 0x0f40-0x0f47 | - | 0x0f40-0x0f47 | 0x0f40-0x0f47 |
Joy port | - | 0x0200 | - | - | 0x1480-0x1487 | 0x1480-0x1487 |
I/O Port | AT互換機 | PC-9821/9801 | |||
SB16 | SB AWE32 | SB16/98 | SB AWE32/98 | MPU/98 | |
SB16 | 0x0220 - 0x022F | 0x0220 - 0x022F | 0x20D2 | 0xC000 - 0xC00F | - |
OPL3 | 0x0388 - 0x038B | 0x0388 - 0x038B | 0xC0D2 | 0xC000 - 0xC003 | - |
MIDI | 0x0330,0x0331 | 0x0330,0x0331 | 0x80D2,0x81D2 | 0xC010,0xC011 | 0xE0D0,0xE0D2 |
AWE32 WaveTable |
- | 0x0620 - 0x0623 0x0A20 - 0x0A23 0x0E20 - 0x0E23 |
- | 0xC014 - 0xC017 0xD008 - 0xD00B 0xE00C - 0xE00F |
- |
3D Stereo | - | - | - | 0xC020 - 0xC020 0xC012 - 0xC012 |
- |
Joy port | 0x0200 - 0x0207 | 0x0200 - 0x0207 | 0x04D2 | 0xC200 - 0xC207 | - |
#include < stdio.h > #include < dos.h > void main(void) { union REGS reg;} |
#include < stdio.h > #include < dos.h > void main(void) { outportb(0x37,0x0b); // SHUT1 = 1} |
#include < stdio.h > #include < dos.h > void main(void) { // real mode 0.6usec / v86 mode 1.8usec outportb(0x005f,0x00);} |
#include < stdio.h > #include < dos.h > void main(void) { union REGS reg;} |