Blame |
Last modification |
View Log
| Download
MOON_BASE = 0xc4
MOON_REG1 = MOON_BASE
MOON_DAT1 = MOON_BASE+1
MOON_REG2 = MOON_BASE+2
MOON_DAT2 = MOON_BASE+3
MOON_STAT = MOON_BASE
MOON_WREG = 0xc2
MOON_WDAT = MOON_WREG+1
;TODO: is this good enough for ATM2?
macro opl4_wait
in a,(MOON_STAT)
rrca
jr c,$-3
endm
ismoonsoundpresent
;out: a=0 and zf=1 if there's Moonsound, a=255 and zf=0 if not
in a,(MOON_STAT)
cp 255
ccf
sbc a,a
ret