Startsidan  ▸  Texter  ▸  Teknikblogg

Anders Hesselbom

Programmerare, skeptiker, sekulärhumanist, antirasist.
Författare till bok om C64 och senbliven lantis.
Röstar pirat.

Hidden stuff in the C128

2010-05-25

Here is some of the hidden stuff in my favorite computer, the Commodore 128.

There is a bug in the Basic interpretation that shows up when you tries to do an arithmetic calculation using a string. This is what’s supposed to happen:

When you add an integer to a string, the interpretator should say that you have mismatching types.

PRINT "10" + 3

The code above should result in an error, not 13 or “103”. So far so good. If you add a negative number to a string, you should get the same error, but instead, the Basic interpretator crashes. The first time, I don’t get any result at all, and when I move the operators together (which is perfectly alright according to the Commodore Basic 7 specification) the CPU goes mental.

You can see from the word BREAK that the Basic interpretator has stopped.

Bare with me, there is more fun to the C128. More posts to come.

Categories: Geeky

Tags: C128

Leave a Reply

Your email address will not be published. Required fields are marked *



En kopp kaffe!

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!

Bjud på en kopp kaffe!

Om...

Kontaktuppgifter, med mera, finns här.

Följ mig

Twitter Instagram
GitHub RSS

Public Service

Folkbildning om public service.

Hem   |   linktr.ee/hesselbom   |   winsoft.se   |   80tal.se   |   Filmtips