{"id":1220,"date":"2015-08-02T16:56:38","date_gmt":"2015-08-02T20:56:38","guid":{"rendered":"http:\/\/biosrhythm.com\/?p=1220"},"modified":"2024-11-19T21:57:12","modified_gmt":"2024-11-20T02:57:12","slug":"getting-programs-for-the-c64-cpm-cartridge","status":"publish","type":"post","link":"https:\/\/biosrhythm.com\/?p=1220","title":{"rendered":"Getting Programs For The C64 CP\/M Cartridge"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" width=\"800\" height=\"800\" src=\"http:\/\/biosrhythm.com\/wp-content\/uploads\/2015\/08\/c64cpm-cart-800x800.jpg\" alt=\"Picture of Commodore 64 CP\/M Cart and Boot Disc\" class=\"wp-image-1223\" srcset=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2015\/08\/c64cpm-cart-800x800.jpg 800w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2015\/08\/c64cpm-cart-150x150.jpg 150w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2015\/08\/c64cpm-cart-300x300.jpg 300w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2015\/08\/c64cpm-cart.jpg 1600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n\n<p><br>The Commodore 64 CP\/M cartridge was released sometime in the early 1980&#8217;s, shortly after the introduction of the C64 itself. The cartridge contained the necessary Z80 chip inside to run CP\/M software natively. While a novel idea, it was a bit too late with the popularity of CP\/M waning which itself had been released almost a decade earlier. To make matters worse, it seems to only work on very early revisions of the Commodore 64. I personally am only able to get it to work reliably on a Rev A motherboard (1982, with no s-video output).<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"800\" height=\"800\" src=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6-800x800.jpg\" alt=\"\" class=\"wp-image-2935\" srcset=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6-800x800.jpg 800w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6-300x300.jpg 300w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6-150x150.jpg 150w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6-768x768.jpg 768w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627879496444702720-CLatEM9UAAAlNV6.jpg 1024w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Despite all it&#8217;s shortcomings, it&#8217;s still a highly collectible Commodore artifact. Prices for the units usually range from $50 to $100 or more on eBay, depending on condition and the original box or manual.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"800\" height=\"800\" src=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS-800x800.jpg\" alt=\"\" class=\"wp-image-2937\" srcset=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS-800x800.jpg 800w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS-300x300.jpg 300w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS-150x150.jpg 150w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS-768x768.jpg 768w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627880341739581440-CLat1KZVAAA8PSS.jpg 1024w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>One problem exists that makes it difficult to actually &#8220;use&#8221; C64 CP\/M, beyond typing DIR or STAT. The disks for CP\/M are a custom format used only for the C64 and 1541. You aren&#8217;t able to use original CP\/M discs, not even those from the Commodore 128. Plus, while there is a standard CBMDOS BAM on the disc, it&#8217;s not what CP\/M uses for disc management so you can&#8217;t just copy files in C64 mode to the disc.<\/p>\n\n\n\n<p>Luckily, there&#8217;s a tool that exists to help with this matter. <a href=\"https:\/\/github.com\/mist64\/ctools\" target=\"_blank\" rel=\"noopener\">Introducing CTOOLS, a suite of command-line utilities that create and manipulate D64 disc images specifically for Commodore&#8217;s CP\/M formatted discs.<\/a> This toolset isn&#8217;t limited to C64 as it works quite well with C128 CP\/M discs as well. You&#8217;ll need to compile into binaries, which worked flawlessly on my Mac 10.10.3. An example terminal session is below. YMMV.<\/p>\n\n\n\n<p><code>% cformat -0 mynewdisc.d64<br>\n% ctools mynewdisc.d64 p mbasic.com<br>\n% ctools mynewdisc.d64 p monopoly.bas<br>\n% ctools mynewdisc.d64 d<br>\n<\/code><\/p>\n\n\n\n<p>When done, <a href=\"http:\/\/biosrhythm.com\/?p=1115\" target=\"_blank\" rel=\"noopener\">simply write your new D64 disc image to a real disc<\/a>. Boot up C64 CP\/M, swap the disc, and type DIR to see the contents. Just like on MS-DOS, &#8220;.COM&#8221; files are executables&#8211; to run them, just type the basename without the .COM at the prompt.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"840\" height=\"630\" src=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627903756152147968-CLbDIiBWcAAQ1JB-840x630.jpg\" alt=\"\" class=\"wp-image-2938\" srcset=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627903756152147968-CLbDIiBWcAAQ1JB-840x630.jpg 840w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627903756152147968-CLbDIiBWcAAQ1JB-300x225.jpg 300w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627903756152147968-CLbDIiBWcAAQ1JB-768x576.jpg 768w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/627903756152147968-CLbDIiBWcAAQ1JB.jpg 1024w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<p>Just in case you&#8217;re not up to compiling the tools, creating the images or finding CP\/M binaries, I&#8217;ve packaged together six D64 disc images that you can <a href=\"http:\/\/biosrhythm.com\/?p=1115\" target=\"_blank\" rel=\"noopener\">write back to a floppy<\/a> and try out on your own C64 CP\/M cartridge. The ZIP archive contains MBASIC (plus a few BASIC games), Sargon Chess, Adventure, and the Zork Trilogy. <a href=\"http:\/\/biosrhythm.com\/misc\/c64cpm-discs.zip\" target=\"_blank\" rel=\"noopener\">Click here to download the C64 CP\/M D64 archive.<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"840\" height=\"661\" src=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/IMG_4061-840x661.jpg\" alt=\"\" class=\"wp-image-2940\" srcset=\"https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/IMG_4061-840x661.jpg 840w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/IMG_4061-300x236.jpg 300w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/IMG_4061-768x605.jpg 768w, https:\/\/biosrhythm.com\/wp-content\/uploads\/2024\/11\/IMG_4061.jpg 1270w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The Commodore 64 CP\/M cartridge was released sometime in the early 1980&#8217;s, shortly after the introduction of the C64 itself. The cartridge contained the necessary Z80 chip inside to run CP\/M software natively. While a novel idea, it was a bit too late with the popularity of CP\/M waning which itself had been released almost [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,15],"tags":[],"_links":{"self":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/1220"}],"collection":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1220"}],"version-history":[{"count":13,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":2941,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions\/2941"}],"wp:attachment":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}