If I do
60 r=usr(s$)
I get a type missmatch error in 60
I'm not a basic programer
untested
do you do this?
10 BLOAD"PSG2SCC.BIN",R:R=USR(&HF87F)
20 FOR R=0 TO 31
30 S=SIN(ATN(1)*R/4)*127 ' Note: S is a SNG or DBL, not an INT here!
40 S$=S$+CHR$(INT(S)AND255)
50 NEXT
60 r=usr(s$)
?
Yes, and I get:
Type missmatch in 60
change &HF87F to &HF000 or in lower addresses
you ccould in any case use openmsx and run toggle_psg2scc and toggle_scc_editor from the commandline
The example is actually tested. I think the "type missmatch" means that you have typed the program in incorrectly.
I suggest that you use copy/paste to move the BASIC program to empty text file and use LOAD-command to load the text file. This should get rid of all possible typing errors. Make also sure that the SCC is attached correctly.
@ARTRAG:
30 S=SIN(ATN(1)*R/4)*127 ' Note: S is a SNG or DBL, not an INT here!
MSX-BASIC does needed number type conversions (DBL -> INT in this case) automatically.
change &HF87F to &HF000 or in lower addresses
&HF000 sound like very bad address to use. Usually games don't use the functionkey definitions to anything so the &HF87F should be safe.
What's the difference between the PSG emulator for SCC and the PSG2SCC?
@NYYRIKKI: as you can see here:
http://www.flickr.com/photos/50145424@N03/5544440128/
your example doesn't work for me... I've taken it directly from the textfile PSGTOSCC.TXT
As you can see, the textfile loads fine under BASIC as you said (after adding the line numbers and deleting the rest of the text file)
but it can't run well because it has errors. So please verify it again...
thanks
@NYYRIKKI: could you take a look at my screenshot, please?
