Search results
How to implement PSG BGM in a game?
Score: 158.78 %,
Type: Forum topic , Comments: 8 comments
of IDBYT0 (address 002BH). If it’s 0 then it’s 60 Hz otherwise it’s 50 Hz. On MSX2 and up you want to read ... Again 0 = 60 Hz, 1 = 50 Hz.
Some example code (untested):
IDBYT0: equ 2BH
IDBYT2: equ 2DH
RG9SAV: equ 0FFE8H
; f <- z: 60 Hz, nz: 50 Hz
GetVDPFrequency:
ld a,(IDBYT2)
cp 1
jr ...
