Last active
March 10, 2020 02:40
-
-
Save knight-ryu12/6a864afda5ece3e62ba3c395acded479 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# CARR $3F -> $2B | |
# MULT CARR $00 | |
# MULT MODL $00 | |
# KSLV CARR $00 | |
# KSLV MODL $94 | |
# ATDE CARR $F0 | |
# ATDE MODL $F0 | |
# SURE CARR $03 | |
# SURE MODL $03 | |
# WVFM CARR $02 | |
# MVFM MODL $02 | |
# CNFB FM/5 | |
# Header | |
56 67 6d 20 | |
XX XX XX XX # Size-4 | |
00 00 01 71 # V171 | |
........... | |
64 7A DA 00 # 14318180Hz 0x00DA7A64 | |
# Seems like Register pair is 20 and 23. | |
5E | |
5F 05 01 #Enables OPL3 Mode | |
#CARR | |
5E 20 00 #AM VIB EGT KSR M3 M2 M1 M0 | |
5E 40 00 #KSL1 KSL0 TL5 TL4 TL3 TL2 TL1 TL0 | |
5E 60 F0 #A3 A2 A1 A0 D3 D2 D1 D0 | |
5E 80 03 #S3 S2 S1 S0 R3 R2 R1 R0 | |
5E E0 02 #F2 F1 F0 | |
#MODL | |
5E 23 00 | |
5E 43 94 | |
5E 63 F0 | |
5E 83 03 | |
5E E3 02 | |
#CHCONF | |
5E C0 36 #CARR CHD CHC CHB CHA FB2 FB1 FB0 CNT 1010 | |
5E A0 XX #CARR F-NUML76543210 | |
5E B0 XX #CARR KON BLOCK2 BLOCK1 BLOCK0 F-NUMH1 F-NUMH0 | |
# B0 MSB is only 0, 1, 2, 3. | |
61 44 AC # wait 1s | |
61 44 AC # wait 1s… | |
# Fnum = f*(2**19)/fs/(2**BLOCK-1) | |
# fs = fM/288 = 14318180/288 = 49715.90277777... ~= 49715.9028 ~= 49716 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment