getting c nonsense in basic when trying to load a program through a string in +3 basic
getting c nonsense in basic when trying to load a program through a string in +3 basic
strangely if i use load s$(to 8), it says nonsense in basic but works when i run it. but when i execute the command without a line no it works without an error. why is this?
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
?
To me both runs without error
To me both runs without error
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
Do a screen grab of the output of the program and s$ when you run it as it was originally written.
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
"Image does not exist"777 wrote: ↑Sun Aug 02, 2020 3:34 pmhttps://www.picpasteplus.com/v.php?i=cdcc1baf1c
now its saying end of file found
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
its working+3code wrote: ↑Sun Aug 02, 2020 3:39 pm"Image does not exist"777 wrote: ↑Sun Aug 02, 2020 3:34 pm https://www.picpasteplus.com/v.php?i=cdcc1baf1c
now its saying end of file found
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
I don't see the "nonsense in basic" error with that code.
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
Do you not need double quotes around the filename [mention]777[/mention]
Your code would I imagine result in:
Rather than
Which I imagine is why you are getting nonsense in basic.
Your code would I imagine result in:
Code: Select all
LOAD E
Code: Select all
LOAD "E"
- 1024MAK
- Bugaboo
- Posts: 3125
- Joined: Wed Nov 15, 2017 2:52 pm
- Location: Sunny Somerset in the U.K. in Europe
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
See also SCf how do i store a disk directory listing in +3 basic as a string?
and WoSf how do i store a disk directory listing in +3 basic as a string?
and WoSf getting c nonsense in basic when trying to load a program through a string in +3 basic
Mark
and WoSf how do i store a disk directory listing in +3 basic as a string?
and WoSf getting c nonsense in basic when trying to load a program through a string in +3 basic
Mark
Standby alert
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
its ok i think ive sussed it. u cant load or merge anything when you have a program running. although you can save.
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
Ok, now I understand what you mean
The BASIC file to be loaded must be saved first as auto-run (with LINE), so all runs ok.
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
I think someone should write a 'C' compiler that reports:
Code: Select all
Error: Basic nonsense in C
Re: getting c nonsense in basic when trying to load a program through a string in +3 basic
Slightly off topic, but this is a fun version of C:Joefish wrote: ↑Tue Aug 04, 2020 11:33 am I think someone should write a 'C' compiler that reports:Code: Select all
Error: Basic nonsense in C
https://lhartikk.github.io/ArnoldC/
This is an example of the syntax:
Code: Select all
IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED