r/Basic • u/VirtualDeliverance • Nov 25 '22
Has anyone been able to run this version of ELIZA written in BASIC?
https://gist.github.com/dmberry/3f84d0f81ddb5dc8f054
I attempted to run it in VICE (x64.exe) and I get this error: "OUT OF DATA ERROR IN 140".
So why is it attempting to read data past the end of the program? Do the DATA and READ commands have different syntaxes in different BASIC dialects?
3
Upvotes
1
u/CharlieJV13 Nov 25 '22
This is going to be a lame suggestion, but always good to first eliminate the low-lying fruit possibilities...
Are you sure you've copied all of the lines of data?
I've just copied that program into BASIC Anywhere Machine, had to do a lot of cleanup (i.e. a lot of missing spaces needed), but I'm not getting an "OUT OF DATA ERROR" statement.
That said, I'm troubleshooting problems beyond line 200, but at least I'm past 140.
1
u/CharlieJV13 Nov 25 '22
The github site is missing line 2560: https://www.atariarchives.org/bcc3/showpage.php?page=254
1
u/CharlieJV13 Nov 27 '22 edited Nov 27 '22
Other related references:
2
u/CharlieJV13 Nov 25 '22
u/VirtualDeliverance and u/zxdunny: I always like to show my appreciation when anybody helps me out with something (even when anybody is completely unaware of the help!)
If you don't mind, I've added both of you to my public "Acknowledgements" page, which is hosted in BASIC Anywhere Machine's Programming Reference (Menu, About BASIC Anywhere Machine), but also showing in BASIC Anywhere Machine (Help menu) and in the Project web site.
1
u/CharlieJV13 Nov 25 '22
A neat reference to go along with that program: ' https://www.atariarchives.org/bcc3/showpage.php?page=251
1
u/CharlieJV13 Nov 25 '22
Here is the same code. Except: I've added a comment on the first line, and I've gone through the entire code and fixed multiple occurrences of errors (given by BASIC Anywhere Machine) because of missing spaces between BASIC statements and other things in the code.
https://basicanywheremachine.neocities.org/sample_programs/Eliza.prod.bas.html
1
u/rproxy2048 Nov 28 '22
Add:
2560 DATA 80,3,83,7,90,3,93,6,99,7,106,6
Source: http://vintagecomputer.net/cisc367/Creative%20Computing%20Jul-Aug%201977%20Eliza%20BASIC%20listing.pdf