Sunday 15 June 2014

First BASIC Program

I mentioned in a recent post that BASIC is 50 years old.

I can't remember the first BASIC program I entered into my Apple II computer when I got it but I captured the screen below on the AppleWin emulator and I'll bet this wasn't very far from it.

Back in those days the convention of using "Hello World" had not been established. So I would probably have either used "Hello" as I illustrate below or I would have just printed the current value of X.

The AppleWin emulator is available to download here.

Notes:
  • As you can see below, the Apple II emulator starts in the "Monitor" language. I had to access the Redbook Reference Manual (available here) in order to remind myself how to get into Integer BASIC (it's Ctrl-B by the way). 
  • You can see that there is a bug in my short 3 line program. Integer BASIC would have been much happier if I had added the following line: 40 END