4300 SP=TI+DU
4310 VPOKE 1,$F9C2,255
4320 IF TI<SP THEN GOTO 4320
4330 VPOKE 1,$F9C2,0
This all works fine. I will be honest I do not know exactly what each VPOKE is doing other than the $F9C2. Any help in understanding what is doing would be grateful.
Secondly, I do not know how to increase the volume. I can hear the tone, but it is not as loud as I think it could be. Help!
And last but certainly not least... how do I do the same thing in ASM? I know there is banking involved and could use some help.
I have created a BASIC program to iron out the details of my program prior to attempting the ASM version. I have attached a copy for those interested. It is by no means finished, nor pretty.
I have succeeded in setting up sound from BASIC using the following:
300 REM =========================================== SOUND SETUP
310 VPOKE 1,$F9C0,255
320 VPOKE 1,$F9C1,5
330 VPOKE 1,$F9C3,%10000000
Then later in the program, I turn it on and off:
4300 SP=TI+DU
4310 VPOKE 1,$F9C2,255
4320 IF TI<SP THEN GOTO 4320
4330 VPOKE 1,$F9C2,0
This all works fine. I will be honest I do not know exactly what each VPOKE is doing other than the $F9C2. Any help in understanding what is doing would be grateful.
Secondly, I do not know how to increase the volume. I can hear the tone, but it is not as loud as I think it could be. Help!
And last but certainly not least... how do I do the same thing in ASM? I know there is banking involved and could use some help.
I have created a BASIC program to iron out the details of my program prior to attempting the ASM version. I have attached a copy for those interested. It is by no means finished, nor pretty.
MORSE6.PRG
Share this post
Link to post
Share on other sites