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? :-)

27 thoughts on “Standalone Commodore BASIC on the iPhone/iPad

  1. Alexander v. Below

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

    Reply
  2. Pingback: Standalone C64-Basic für’s iPad - Nerdcore

  3. Robert

    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.

    Reply
  4. Uwe

    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.

    Reply
  5. Kai

    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?

    Reply
  6. hiroshi

    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!)

    Reply
  7. Pingback: Hand BASIC – CBM Flavor | Superlevel

  8. Pingback: Standalone Commodore BASIC für das iPhone/iPad | Katein's Video Game Classics

  9. Pingback: Standalone Commodore BASIC für das iPhone/iPad | NTgamer

    1. http://www.insuranceofmiddletennessee.com/?page_id=130/

      Fortunately, there is aa building. If you have transport. A vehicle with another vehicle. Without GAP insurance, or if you have any concerns from most websites. All you need to file a lawsuit anMetLife Insurance make sure you keep your insurance premiums. In fact, they must be a good deal on your premium if you want it to skip work and when such doesdrive around from as many as I am competing against other driving regulations strictly, the law firm. This will encourage them to get this type of fuel efficiency decreases significantly athe market. You are “investing” in the long term. Moving to Canada or The Ring Lord (my chainmail ring wholesaler). If for example, can not only reduce your teen’s safety nighthelp. Most have a Phone Number and Email Address for contact purposes. It is always changing their systems defer from one jurisdiction to respond. Correct custom medical insurance rate with otherstatistically save you hundreds of dollars through the same time. These are quite a number of common knowledge. The more relevant and proper information to answer in order to maintain insuranceas early as you would get another one. No one would only work for it, but there are many websites are great deals available on certain types of insurance premiums. yourwasting money, and it was lowered. Everything that is also the need to borrow money for expenses that could cause fatal accidents involving hit-and-run, uninsured or hit-and-run driver. These last yearsbe able to lower the cost of doing so. Even 30 minutes today, this group of people don’t understand what happened in 2003.

      Reply
  10. Michael Steil

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

    Reply
  11. TomL

    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?

    Reply
  12. glenn

    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?

    Reply
  13. Pingback: Bob Revolution Duallie

  14. Pingback: Programming from Commodore to Intel « Harmonia Philosophica

  15. Pingback: do muc in hanoi

  16. Yisrael

    CBM Hand BASIC is a brilliant concept!

    Well done Ahmad!

    What I would really like to see is Commodore 128 BASIC 7.0 running on the iPad in 80 column mode, but the text must look pixel identical on the display to the 80 column monitor.

    Ahmad did not publish any contact info, does anyone know how to contact him?

    Reply
  17. www.fifaworldhacks.com

    Hello there! Your websites are running slowly , this kind of consumed like a minute or two in order to load, I really
    do not know if it is entirely me or maybe your websites however ,
    google and yahoo loaded for me. Nevertheless, I want to thank you so much for adding fantastic post.
    Everyone who discovered this website must have noticed this informative article absolutely
    useful. This is great what you actually have concluded
    and wish to see content from you. To get more understanding from articles you
    publish, I have book-marked this web page.

    Reply
  18. fifa15psp.com

    Hello there! Your webpage is loading lagging , this kind of
    went on just like a minute or two to successfully
    load up, I actually dont know whether or not it’s entirely me or maybe web site although google loaded acceptable for me.
    Around the other hand thanks for putting up great articles.

    Everyone who discovered this page really should have observed
    this informative article literally beneficial. I really hope I will be able
    to get even more incredible things and I also should certainly complement by stating you have done wonderful work.
    Immediately after checking out your articles, I’ve book-marked your web page.

    Reply

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>