Standalone Commodore BASIC on the iPhone/iPad

You might remember the hassle about the Commodore 64 emulator in the iPhone App Store about a year ago: First it was approved, but then pulled again, because it allowed access to the C64′s BASIC – general-purpose interpreters were not allowed. After Apple relaxed this restriction, BASIC was added again.

So now it fills me with joy that Ahmad Hawwash managed to get standalone Commodore BASIC into the App Store! His “Hand BASIC – CBM Flavor” is free of charge, runs on iPhone/iPod touch and iPad, and is based on pagetable.com’s Open Source cbmbasic project, a recompiled version of the original Commodore 64 binary, so the BASIC interpreter is itself not interpreted, but runs natively and at full speed, which is in the order of 500 times faster than on a C64.

“Hand BASIC” has LOAD/SAVE support and comes with several demo programs – just type LOAD"$",8 and LIST to see them and LOAD"NAME",8 and RUN to run them. Type the (nonstandard/added) HIDE keyword to hide the keyboard.

What would be very interesting now:

  • Some cool BASIC programs that run in here – games, maybe?
  • A compiler backend that produces Commodore BASIC code, so I can run any code on the iPhone through this – with a 38911 byte RAM limitation, of course. (Actually, a program is free to set the TOPMEM pointer higher, allowing up to 62 KB of RAM for code and variables.)

Any other ideas? :-)

pixelstats trackingpixel

20 Responses to “Standalone Commodore BASIC on the iPhone/iPad”

  1. Alexander v. Below says:

    I need to find my old issues of Compute!, which had some pretty interesting games and stuff

  2. Alexander v. Below says:

    Oh, and what is missing is iTunes Document Sharing! How am I going to get listing on an off the device?

  3. Jonno says:

    I wonder if this would support “BASIC on Bails”

  4. [...] Standalone Commodore BASIC on the iPhone/iPad [...]

  5. Robert says:

    There could be the odd text adventure that would work. Most BASIC games would typically poke the back- and foreground color, screen- and color memory, so if only that could be trapped and handled in the interpreter then there should be a bunch of games that would run.

  6. Uwe says:

    Wow, all those great memories of the past. How much fun did I have with the C64 back then! Castles of Dr. Creep was my all-time favorite.

  7. Kai says:

    Many C64 games were not fully written or delivered in BASIC, but had at least some assembler routines that they were calling. Would stuff like that work on this app?

  8. hiroshi says:

    oh wow, I love this! I could probably actually make use of this on the go.

    I think you should have a native loading screen on startup, so you can quickly load/run a saved program.

    a help screen would be nice, too. without seeing this post, a lot of people won\’t remember how to load (or might not believe that load\”$\”,1 would even work here!)

  9. [...] 10 REM *** YEAH, YEAH, YEAH! ***20 POKE53280,0:POKE53281,0:POKE646,130 INPUT”GIBT ES EINEN KOSTENLOSEN BASIC-EMULATOR FUER IOS”;A$40 IF A$=”NEIN” GOTO 7050 IF A$=”JA” GOTO 8060 IF A$“JA” OR A$“NEIN” GOTO 3070 PRINT”KCHKCHKCH…”:SYS6473880 PRINT”YEAH, BABY!”READY.? [...]

  10. [...] bei der Commodore 64 V2.0 App ebenfalls dabei ist, fehlt hier. Mehr Infos dazu findet man auf dieser Seite. // Filed under : Allgemein | Trackback URI | Comments [...]

  11. If you are able to access the Internet from behind the scenes, it would be great to be able to pull programs from CommodoreServer where you can store D64 files.

  12. [...] bei der Commodore 64 V2.0 App ebenfalls dabei ist, fehlt hier. Mehr Infos dazu findet man auf dieser Seite. // Filed under : Allgemein | Trackback URI | Comments [...]

  13. TomL says:

    How do you stop a running program?

  14. Michael Steil says:

    @TomL: Ahmad just updated it today, adding support for stopping a running program by hitting the “bullet” key on the virtual keyboard.

  15. TomL says:

    That worked. Thanks, Michael! Now, how about special characters in quotes such as RVS ON, RVS OFF, clear screen, color changes, cursor movements, the graphics chracters, etc?

  16. MiaM says:

    TomL:

    The special characters aren’t part of the CBM BASIC, they are part of the kernal…

  17. glenn says:

    I JUST TYPED IN THE ENTIRE KIDS ASSEMBLER.
    THE CURSOR KEY IE UP,DN ETC DOESNT WORK
    THE SCREEN COLORS CHANGING DOESNT WORK
    I WAS HOPING TO WRITE SOME MACHINE LANGUAGE
    BUT NOT GOING TO WORK. DAMN. THANKS FOR THE BASIC
    COULD YOU GET THE CURSOR KEYS TO WORK?

  18. Bob Revolution Duallie…

    [...]Standalone Commodore BASIC on the iPhone/iPad « pagetable.com[...]…

  19. [...] Standalone Commodore BASIC on the iPhone/iPad [...]

  20. do muc in hanoi…

    [...]Standalone Commodore BASIC on the iPhone/iPad « pagetable.com[...]…

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word