{"id":437,"date":"2010-10-17T20:51:55","date_gmt":"2010-10-18T04:51:55","guid":{"rendered":"http:\/\/www.pagetable.com\/?p=437"},"modified":"2010-10-17T20:51:55","modified_gmt":"2010-10-18T04:51:55","slug":"standalone-commodore-basic-on-the-iphoneipad","status":"publish","type":"post","link":"https:\/\/www.pagetable.com\/?p=437","title":{"rendered":"Standalone Commodore BASIC on the iPhone\/iPad"},"content":{"rendered":"<p>You might remember the <a href=\"http:\/\/gizmodo.com\/5354422\/commodore-64-iphone-app-approved-removed\">hassle<\/a> about the <a href=\"http:\/\/itunes.apple.com\/us\/app\/commodore-64\/id305504539?mt=8\">Commodore 64 emulator<\/a> in the iPhone App Store about a year ago: First it was approved, but then pulled again, because it allowed access to the C64&#8217;s BASIC &#8211; general-purpose interpreters were not allowed. After Apple relaxed this restriction, BASIC was <a href=\"http:\/\/toucharcade.com\/2010\/09\/12\/manomio-adds-basic-to-c64-in-light-of-apples-sdk-agreement-update\/\">added again<\/a>.<\/p>\n<p>So now it fills me with joy that Ahmad Hawwash managed to get standalone Commodore BASIC into the App Store! His &#8220;<a href=\"http:\/\/itunes.apple.com\/us\/app\/hand-basic-cbm-flavor\/id394924289?mt=8\">Hand BASIC &#8211; CBM Flavor<\/a>&#8221; is free of charge, runs on iPhone\/iPod touch and iPad, and is based on <a href=\"http:\/\/www.pagetable.com\/?p=48\">pagetable.com&#8217;s<\/a> Open Source <a href=\"http:\/\/cbmbasic.sourceforge.net\/\">cbmbasic<\/a> 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.<\/p>\n<p>&#8220;Hand BASIC&#8221; has LOAD\/SAVE support and comes with several demo programs &#8211; just type <tt>LOAD\"$\",8<\/tt> and <tt>LIST<\/tt> to see them and <tt>LOAD\"NAME\",8<\/tt> and <tt>RUN<\/tt> to run them. Type the (nonstandard\/added) <tt>HIDE<\/tt> keyword to hide the keyboard.<\/p>\n<p><a href=\"http:\/\/www.pagetable.com\/docs\/cbmbasic_iphone\/cbmbasic_iphone.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.pagetable.com\/docs\/cbmbasic_iphone\/cbmbasic_iphone.png\" width=\"320\" height=\"480\"><\/a><\/p>\n<p>What would be very interesting now:<\/p>\n<ul>\n<li>Some cool BASIC programs that run in here &#8211; games, maybe?<\/li>\n<li>A compiler backend that produces Commodore BASIC code, so I can run any code on the iPhone through this &#8211; 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.)<\/li>\n<\/ul>\n<p>Any other ideas? \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s BASIC &#8211; general-purpose interpreters were not allowed. After Apple relaxed this restriction, BASIC was added again. So now it fills me &#8230; <a title=\"Standalone Commodore BASIC on the iPhone\/iPad\" class=\"read-more\" href=\"https:\/\/www.pagetable.com\/?p=437\" aria-label=\"Read more about Standalone Commodore BASIC on the iPhone\/iPad\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,6],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-2","category-archeology","category-basic"],"_links":{"self":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":0,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}