Hi Guys,
A good evening to you indeed,
How to reset all 3 audio channels A,B,C of the PSG (Yamaha 8910) for MSX1.
It should be noted that when starting the other sound effects in L/M of my routine in assembly,
it would somehow conflict with the one in BASIC, the one that would give life EXTRA BONUS 1UP.
I would have tried with DEFUSR=&H90:A=USR( 0): REM but without success.
part of example taken from the BASIC source of the WASHMAN game:
180 DEFINTA-Y:DIM M$(4):DEFSTRZ:DIMZ(28)
200 GOSUB5360:REM CALL SOUND BONUS 1UP
210 END
5350 ' MUSIC BONUS EXTRA 1UP
5360 DEFUSR=&H90:A=USR(0)
5370 REM SFX 1UP! EXTRA BONUS
5380 RESTORE5400:GOSUB5390:IFI3=0THENPLAYZ(0),Z(1),Z(2):RETURNELSEFORI3=I3TO0STEP-1:READI0,I1,I2:PLAYZ(I0),Z(I1),Z(I2):NEXT:RETURN
5390 READI0,Z0,I1,I3:SOUND7,I0:PLAYZ0,Z0,Z0:FORI0=0TOI1:READZ(I0):NEXT:LI=LI+1:LF=LI:IFLF>11THENLF=11:LOCATE19+LF,1:PRINTCHR$(126):RETURN
5400 DATA&O70,t220s1m4096l8,2,0,O5EEEG+V12ES1BBBO6EV12O5BO6EV8O5BO6EV6O5BO6E,O5G+G+G+BV12G+S1O6D+D+D+G+V12D+G+V8D+G+V6D+G+,O4BBBO5EV12O4BS1O5G+G+G+BV12G+BV8G+BV6G+B
Would there be a solution to this problem?
That's all for now.
Kind Regards
(^_^)
Andrea Gasparrini from Italy
My reference website where to download my WASHMAN video game ------->