4th Part: "Nostalgia" "Old" Basic Language interpreters, Commodore 64 Basic Interpreter # 1.

Published:

Updated:

The maker of "cbmbasic-1.0-win32" says that it is 100% compatible with the Commodore 64, but as it is by itself, it doesn't seem to be, no peeks nor pokes, nor graphics, nor colors, Etc.

Anyhow it works on a DOS window, you can type program lines on the screen and or you can paste the text of the program's lines onto the DOS window, put the cursor on the very top of the window and Rth Click on the Mouse, then goto Edit and then to Paste and in this way you can first copy programs listings and then paste them onto the "cbmbasic-1.0-win32" DOS window and then either RUN them LIST them or SAVE them:

RUN

LIST

SAVE "NAME OF PROGRAM"

And once a program is saved into the same folder as the program is, you can then later at any-time LOAD it into the program:

LOAD "NAME OF PROGRAM"

Once a program is loaded it can be:

RUN(NED)

Or

LIST(ED)

-------

Remember for the program to work ok, limited as it is by itself, the "Caps Lock" must always be on.

-------------------------------

There is "Direct Mode" Such as entering commands onto the DOS window without line numbers:

PRINT 4+6

Then press the return key and get:

10

-------

Also:

PRINT "HELLO"

Press Return and get:

HELLO.

----------

Program Mode is when you use Line Numbers and the program is not executed until you first enter RUN and then press the Enter key,  the Enter key works as the RETURN Key.

Such as:

10 PRINT 4+9

RUN

13

Or

10 PRINT "CAR"

RUN

CAR

--------------

This has also shown  some the basic keyword command PRINT.

------------------

So program lines begin with numbers, it seems as if you can even start with line # 0 at least with this particular Basic Interpreter.

0 PRINT "WHATEVER"

RUN

WHATEVER

----------

A KeyWord or Command gives instructions to the computer, that is, it tells the computer what to do.

Each Basic Interpreter program has a list of words that is used for giving the computer instructions.

-----------

The KeyWord or Command REM is or means REMARK, it is used for putting remarks or notes on the program, that is all that it does, that is, it doesn't do much of anything at all.

For Example:

1 REM How to Substract numbers

2 PRINT 55-25

RUN

30

-----------

By the way to:

Add use +

Substract use -

Multiply use *, if you try to use X, you will see that it doesn't work, at least not with this Commodore 64 interpreter.

Divide use /

-----------------------

That is all on this for today, I am also more or less learning or on some things relearning as I type these things.

Since I can't seem to make this fully work as a regular C-64 then we are so far limited to only using a portion of the full set of basic commands.

If we were talking about a Commodore 64 emulator then we could use all or at least most of the C-64 keywords commands-instructions.

I might talk some about Commodore emulators later, maybe or maybe not.

Anyhow, some more about the Commodore basic commands later as I can make time for.

The set of Commodore basic commands is more or less about the same as those of some old basic interpreters, that is the basic-basic keywords, some keywords are more or less the same, but each interpreter has its own set of commands, only some of the commands might be shared among many or most of the old basic interpreters.

----------

Now this is really all for Today.

Entry #329

Comments

This Blog entry currently has no comments.

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register