5 ms·
While this is cool pet project (intentional pun), Microsoft Basic 6502 was, in my personal opinion, one of the worst BASIC implementations of that era. If we're
by hnlmorg 6y ago
While this is cool pet project (intentional pun), Microsoft Basic 6502 was, in my personal opinion, one of the worst BASIC implementations of that era. If we're going early 80s BASIC then I'd prefer to use BBC BASIC which supported functions amongst other things -- albeit still not as readable as modern structured programming.
There's still a few BASIC implementations floating about for modern systems too. FreeBASIC (https://www.freebasic.net/ https://www.freebasic.net/) is one worth checking out.
Personally I still have quite a few of those 80s micro computers and occasionally hook them up to teach my kids programming.
- tssva 6y agoTechnically it does support functions. They are just extremely limited.
- hnlmorg 6y ago"Extremely limited" is fair. They were just one line formulas so pretty useless most of the time. Of course you also had sub-routines via GOSUB (which was defined in the very first BASIC specification in the 60s) but those didn't support parameters passing and GOSUB is only slightly less ugly than GOTO. Sadly "Commodore BASIC" didn't support multi-line user defined functions like BBC BASIC: REM Squaring a number using FN A=4 B=FN_Square(A) PRINT A;" squared is ";B END DEF FN_Square(Num) =Num^2 (Source: http://www.bbcbasic.co.uk/bbcwin/tutorial/chapter17.html http://www.bbcbasic.co.uk/bbcwin/tutorial/chapter17.html) I'll grant you that even with BBC BASIC the syntax isn't pretty with the = token taking the place of a RETURN statement. BASIC definitely had its quirks. I think Applesoft BASIC (also a Microsoft BASIC) supported multi-line FN blocks. Can't find anything conclusive online to confirm this though - perhaps someone on here remembers?
- tssva 6y agoApplesoft BASIC also only supported numeric single line functions. The first BASIC I used was Tandy TRS-80 Level II BASIC which shipped on all but the earliest of the TRS-80 Model I's. Microsoft wrote this BASIC also and it didn't support any type of user defined functions. Microsoft created a Level III BASIC for the TRS-80 which was their first consumer product. This did support single line functions and I think but am not absolutely sure that it supported string as well as numeric functions.
- Gibbon1 6y agoYour comment reminds me of HP9845 Basic. After using it everything else felt brain dead. Not just other versions of basic either. https://www.hp9845.net/9845/software/basic/ https://www.hp9845.net/9845/software/basic/
- bartread 6y agoCame here to say this. Commodore BASIC (which was really by Microsoft, as you've pointed out) was by far my least favourite of the 8-bit BASICs I used. It was even worse than Sinclair BASIC due to the lack of drawing commands (yes, I know you could get these as extensions on a cartridge - I didn't have that). The main issues with Sinclair BASIC were limited functions and the fact you had to use key combinations to enter most keywords. I also remember it as being slow as all hell when compared to other BASICs, although that might just be the opposite of whatever rose-tinted nostalgia is. I loved the Commodore 64 but its BASIC sucked. Commodore continued to royally eff up with Amiga BASIC which, if memory serves, was also basically[1] by Microsoft. I immediately switched over to AMOS by Francois Lionet, which was great, although with hindsight wish I'd given Blitz a go too. [1] Pun also intended, even though dreadful.
- simmons 6y agoTo be fair to Microsoft, the C64 BASIC was notoriously outdated when the C64 shipped. Jack Tramiel managed to buy an unlimited-use license to Microsoft's BASIC in 1977, and was determined to get his money's worth. On the bright side, the C64 BASIC was great at motivating new programmers to learn assembly programming so they could avoid it, and in the process finding out how computers really work. :)
- lstodd 6y agoThis. I remember the C64 BASIC mostly as a glorified loader for the machine code. I even typed in a monitor published in some magazine just so I could push the machine nearer its limits.
- fit2rule 6y agoCut my teeth on Oric Atmos BASIC, and I can verify that my eyes still scan magazine listings intuitively looking for the DATA statements that indicate fast BLIT code ..
- jerrysievert 6y agoit motivated me to learn C.
- rpiguy 6y agoBBC BASIC was also fast. A lot of the "Better" BASICs were also quite a bit slower at the time. Microsoft BASIC was relatively swift compared to most early peers, had decent precision FP, and had limited interoperability between platforms. This made it ideal for small business, education, and magazine listings. So once again Microsoft won with an inferior product by turning it into a de facto standard :-) I did like the simplicity of it.
- fit2rule 6y agoLovely thing about the BBC was the I/o breakout that meant you could easily wire it up to another processor and do stuff. For those of us at the time, growing up with alternative systems, such features were a real wonder, and a reason to lug everything over to my BBC-owning neighbours place for a weekend hacking .. I love it that this ethos has persisted in the ZX Spectrum Next design[1], which also allows for the .. limited .. 8-bit (well, max'ed out actually) machine to access a .. rather large super-computer, by comparison, and by that I mean a raspberry-pi Zero ... I wonder, if ZX Next is a paradigm which develops further into a viable market (imho, this already exists, elsewhere and otherwise..) then what sort of crazy machines might we be sporting on our wrists and in pockets, soon enough? I mean, ZX Next ideology, in a PDA .. [1] - https://www.specnext.com https://www.specnext.com
- the_af 6y agoI share your opinion about the C64's poor basic -- only reinforced by the fact I'm toying with coding again for the Commodore, since it was my first love -- but someone pointed out the incredibly good game Pirates! by Sid Meier was mostly written in C64 BASIC! (I had trouble believing this, but all the info I found online points to this being true)
- vidarh 6y agoIt was. It does use machine code utility routines for various things though. I never looked into it much, but did list the basic part at some point.
- fit2rule 6y agoAs a huge retro fan with a collection of over 30 systems, I thoroughly encourage you to pick up C64 coding and give it another go. And for anyone else thinking about this subject, consider this: every year for the last decade now the following systems have had new programs written for them by thriving communities: Amstrad CPC6128, C64, ZXSpectrum, BBC Micro B, Oric Atmos, Jupiter Ace (!), Apple II .. actually, never mind. Lets just try this experiment: dig out the old computer from your attic, dust it off, get your docs together, and go find the .. rather eager, I'm sure .. community of hackers that are keeping these machines alive. Honestly, I have a ton of iDevices with App Store crap on them. The only releases I get really excited about lately are for the Amstrad CPC6128 and Atmos, though .. its just so fun to see crazy new stuff being made for these 'ancient' machines .. So yeah, please get to coding. Docs for some of these systems are easier now than ever!
- omarhaneef 6y ago"They" should just have an emulator for all these machines on the raspberry pi, with a shell keyboard that makes it look like these machines.
- hnlmorg 6y agoThere's a lot of enjoyment to be had actually using these retro systems. A large part of it is nostalgia, I wont deny that. But the way those systems directly interfaced with the hardware does bring some enjoyment too. I think of it like playing vinyl, some people enjoy the colourisation that vinyl adds to the sound but other people enjoy the tactile nature of the medium. Typing your code directly on an Amstrad, BBC Micro or Apple II is a bit like that in that there are technically better ways to do it these days but using the original machines gives you an irrational sense of enjoyment.
- jhallenworld 6y agoWhat I remember about C64 BASIC is that variable names were significant to only two characters. It was horrendous for any sizable program. What did people do for a development environment on the C64? I remember that it was not fun at all using straight Commodore tools. For example, the disk was unbelievable slow. At the time, I also had Atari 800- it was a much nicer system.