6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 15, 2024 1:58 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Oct 07, 2024 6:20 pm 
Offline

Joined: Tue Apr 09, 2024 9:17 pm
Posts: 4
Hi, yes, Im another one hooked in by Mr Ben Eater!!! Been playing with this for over a year, and its been brilliant fun. Not just for me, but my youngst son too. Not posted before, but this forum and its resources has been invaluable. Up till now, I've managed to eventually get BE6502 working, and made a few mods, all with a lot of help here. So, before my question, thanks !!

I've just downloaded Ben's latest MS basic from Github, and evereything looks good, except for the LCDPRINT function in MS Basic. When I use it, I get a Syntax Error.

The LCDCMD seems to work, so I hope that shows my hardware is correct. (When things go wrong I always worry there's a loose or incorrect connection somewhere.) The thing is, the code on GitHub is different to what Ben has in his video. It looks like its trying to handle a string rather then a hex number, but Im not good enough to work out whats supposed to be happening in ther code. So, has anyone else seen this? And assuming Ben's code is good, what could be going wrong my end?

Ah, also..... when I first downloaded Ben's MS Basic, I got a version which had a BE6502 splash screen on boot, had LCD and SD Card support, and supermon64 included. But I've never seen it since. Anyone else come across this?

Thanks for reading.


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 07, 2024 7:33 pm 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
The LCD code in question is at https://github.com/beneater/msbasic/blob/master/lcd.s. At the end of his latest video (https://www.youtube.com/watch?v=gOwi2p1pzVM) he does talk about changing LCDPRINT to take a string instead of a number, and it looks like he's done that in this version of the code.

You've got two options: return LCDPRINT to its original state (which expects a number), or use the new string-taking LCDPRINT. I haven't tried it, but it looks very much like it will work the same as the fake example at the end of the video. So
Code:
LCDPRINT "Hello world!"

will print "Hello world!". You should be able to use any string expression, including string variables. So maybe (it has been a very long time since I've used Microsoft BASIC)
Code:
A$ = "Hello"
B$ = "world!"
LCDPRINT A$+" "+B$


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 07, 2024 8:06 pm 
Offline

Joined: Tue Apr 09, 2024 9:17 pm
Posts: 4
John West wrote:
The LCD code in question is at https://github.com/beneater/msbasic/blob/master/lcd.s. At the end of his latest video (https://www.youtube.com/watch?v=gOwi2p1pzVM) he does talk about changing LCDPRINT to take a string instead of a number, and it looks like he's done that in this version of the code.

You've got two options: return LCDPRINT to its original state (which expects a number), or use the new string-taking LCDPRINT. I haven't tried it, but it looks very much like it will work the same as the fake example at the end of the video. So
Code:
LCDPRINT "Hello world!"

will print "Hello world!". You should be able to use any string expression, including string variables. So maybe (it has been a very long time since I've used Microsoft BASIC)
Code:
A$ = "Hello"
B$ = "world!"
LCDPRINT A$+" "+B$


Hi, thanks for your reply.

I tried both those and both give me the ?Syntax Error.

So, I know what should work, but it appears not to. Seems odd to me that Ben has his video, points to the GH code, but its different and doesnt work. Well, at least for me. I dont know right now if that code should work, or if I've messed something up.

Edit: just noticed that your second example actually displays "W" on the LCD!!


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 08, 2024 7:46 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
(Welcome!)


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 08, 2024 8:19 am 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
Is there a downloadable binary file for this version of BASIC? I can modify my simulator to look enough like Ben's hardware to get BASIC running, but I don't use whatever assembler that is written for, and don't fancy setting up a whole new development environment just for this.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 08, 2024 3:27 pm 
Offline

Joined: Tue Apr 09, 2024 9:17 pm
Posts: 4
John West wrote:
Is there a downloadable binary file for this version of BASIC? I can modify my simulator to look enough like Ben's hardware to get BASIC running, but I don't use whatever assembler that is written for, and don't fancy setting up a whole new development environment just for this.

If you mean a compliled bin file of Ben's BASIC, I've not seen one there.

Setting up CC65 to complie it is pretty trivial, hell, I did it!!! :)
But I do get your reluctance.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 08, 2024 3:28 pm 
Offline

Joined: Tue Apr 09, 2024 9:17 pm
Posts: 4
BigEd wrote:
(Welcome!)

Thanks :)


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 23, 2024 11:03 pm 
Offline

Joined: Sun Feb 22, 2004 9:01 pm
Posts: 104
I tweeked my 6502 emulator to have a "look like BenEater" option, and it was only a few minutes' work to tweek SerialTube65 to get BBC BASIC working. :)

_________________
--
JGH - http://mdfs.net


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: