Page 1 of 1

YM2612 trouble

Posted: Sun Oct 28, 2007 3:19 pm
by TmEE co.(TM)

Code: Select all

FMnotesOn
 HL, FMPORT2
 LD  A, $28
 LD  (FMPORT1), A
 NOP #2
 LD  (HL), $F0
 NOP #2
 LD  (HL), $F1
 NOP #2
 LD  (HL), $F2
 NOP #2
 LD  (HL), $F4
 NOP #2
 LD  (HL), $F5
 RET
This code should put all keys on, but in Kmod I see that only last one is on...
Is there a bug in Kmod, or I'm not doing something ?

Posted: Thu Nov 01, 2007 5:04 am
by Shiru
If there was such bug in KMod, how so many games can work?

Seems you do all right. Try to output #28 to port 1 each time before output to port 2. I always do so, and all works fine.

Posted: Thu Nov 01, 2007 12:37 pm
by TmEE co.(TM)
Its a bug in Kmod, lots of other drivers that aren't VBL based don't show Key on/offs correctly too.