{"id":1373,"date":"2019-10-18T13:45:31","date_gmt":"2019-10-18T11:45:31","guid":{"rendered":"https:\/\/www.pagetable.com\/?p=1373"},"modified":"2019-10-18T13:45:31","modified_gmt":"2019-10-18T11:45:31","slug":"commander-x16-philosophy-and-specification","status":"publish","type":"post","link":"https:\/\/www.pagetable.com\/?p=1373","title":{"rendered":"Commander X16: Philosophy and Specification"},"content":{"rendered":"<p>I recently got involved in the Commander X16 project. I would like to give an overview of the project and the vision behind it from my perspective.<\/p>\n<h2 id=\"Philosophy\">Philosophy<\/h2>\n<p>The Commander X16 is a new 8 bit computer designed by David Murray of the well-known <a href=\"https:\/\/www.youtube.com\/channel\/UC8uT9cgJorJPWu7ITLGo9Ww\">&ldquo;The 8-Bit Guy&rdquo; online video channel<\/a>.<\/p>\n<p>8 bit computers are great for learning about computer architecture, because they are simple enough that they can be fully understood, and they are great for learning to program, because they boot straight into a programming language. But 8 bit computers also have some annoyances like cheap, non-standard keyboards, TV-out and the reliance on floppy disks (or rather expensive SD card adapters).<\/p>\n<p>Therefore, David is designing  a new 8 bit computer in the style of Commodore computers like the VIC-20 and the C64, fixing the annoyances of retro computers by having:<\/p>\n<ul>\n<li>VGA output (in addition to composite)<\/li>\n<li>support for standard PS\/2 keyboards (instead of a cheap built-in keyboard with a non-standard layout)<\/li>\n<li>SD card for storage (instead of an additional floppy drive)<\/li>\n<li>RS232 port for efficient cross-developmment<\/li>\n<li>efficient modern power supply<\/li>\n<\/ul>\n<p>Another problem with retro computers nowadays is the high barrier of entry when developing (semi-)professional software: Since retro computers have been researched for almost 40 years, standards for software are very high. Any credible new game release for the C64 for example will have to come with a fastloader to overcome slow load speeds, and a sprite multiplexer to overcome the 8 sprite limit. The X16 ROM supports fast loading from SD card, and its video chip supports plenty of sprites as well as hardware scrolling of bitmaps. The memory map is kept simple and does not need (or support) complex reconfigurations.<\/p>\n<p>With a rather modest set of hardware features, the X16 targets a lower price point than most comparable projects.<\/p>\n<p>These are the original videos on the topic:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=ayh0qebfD2g\">The 8-Bit Guy: My dream computer &#8211; Part 1<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=sg-6Cjzzg8s\">The 8-Bit Guy: My dream computer &#8211; Part 2<\/a><\/li>\n<\/ul>\n<h2 id=\"Hardware\">Hardware<\/h2>\n<p>These are the hardware specs:<\/p>\n<ul>\n<li>65C02 CPU at 8 MHz<\/li>\n<li>40 KB of main RAM<\/li>\n<li>512 KB (or 2 MB) of banked RAM<\/li>\n<li>128 KB of banked ROM<\/li>\n<li>VERA video controller\n<ul>\n<li>16-bit class<\/li>\n<li>128 KB of external video RAM<\/li>\n<li>640&#215;480 (or 320&#215;240) pixels<\/li>\n<li>256 colors out of 4096<\/li>\n<li>2 layers supporting tiled and bitmap modes<\/li>\n<li>128 sprites (limit per line based on memory bandwidth)<\/li>\n<\/ul>\n<\/li>\n<li>sound TBD<\/li>\n<li>two 6522 VIA I\/O controllers<\/li>\n<\/ul>\n<p>The computer supports the following connections:<\/p>\n<ul>\n<li>VGA (480p), or Composite\/RGB (480i)<\/li>\n<li>PS\/2 keyboard<\/li>\n<li>PS\/2 mouse<\/li>\n<li>two NES or SNES controllers<\/li>\n<li>SD card<\/li>\n<li>legacy IEC<\/>\n<li>RS-232<\/li>\n<\/ul>\n<p>The X16 is not an FPGA-based solution, but uses real, socketed 65C02 and 6522 chips for the same hackability as a retro computer. The video chip is a new design and comes as an FPGA.<\/p>\n<h2 id=\"Software\">Software<\/h2>\n<p>From the software side, the Commander X16 feels like a Commodore computer. Its ROM contains the &ldquo;KERNAL&rdquo; operating system derived from the C64 version, as well as an enhanced version of Commodore\/Microsoft BASIC based on V2.<\/p>\n<p><img decoding=\"async\" src=\"docs\/x16\/hello_world.gif\" alt=\"\" \/><\/p>\n<p>Consequently, the X16 can be considered a sibling of the computers from the Commodore 8 bit family (PET, VIC-20, C64, CBM2, Plus\/4, C128 and C65). It is not meant to be fully compatible with any of these machines, but it is as compatible as a Plus\/4 is with a C64: BASIC programs without PEEK and POKE as well as machine code programs that only use the documented KERNAL API (e.g. BSOUT $FFD2) will just work, but existing code that accesses hardware would have to be ported.<\/p>\n<p>The fact that the X16 breaks compatibility with the C64 is what I find particular interesting. Most retro projects try to recreate a classic computer. Users will start their favorite two games and then get bored. The X16 is a new system, with new tricks to discover \u2013 but familiar to people who know the C64.<\/p>\n<h2 id=\"Development\">Development<\/h2>\n<p>As of October 2019, only a handful of prototype machines exist. If you don&rsquo;t want to wait for the release hardware, you can use the emulator:<\/p>\n<p><a href=\"https:\/\/github.com\/commanderx16\/x16-emulator\/\">https:\/\/github.com\/commanderx16\/x16-emulator\/<\/a><\/p>\n<p>There are binary releases for macOS, Windows and Linux on the GitHub releases page, which always include the latest build of the ROM.<\/p>\n<p>The ROM is being developed as open source:<\/p>\n<p><a href=\"https:\/\/github.com\/commanderx16\/x16-rom\/\">https:\/\/github.com\/commanderx16\/x16-rom\/<\/a><\/p>\n<p>The reference guide is worked on as an open source project as well:<\/p>\n<p><a href=\"https:\/\/github.com\/commanderx16\/x16-docs\/\">https:\/\/github.com\/commanderx16\/x16-docs\/<\/a><\/p>\n<p>And here is a collection of demo\/example code contributed to by many people:<\/p>\n<p><a href=\"https:\/\/github.com\/commanderx16\/x16-demo\/\">https:\/\/github.com\/commanderx16\/x16-demo\/<\/a><\/p>\n<p><strike>The <a href=\"https:\/\/www.facebook.com\/groups\/CommanderX16\/\">official forum<\/a> is <a href=\"https:\/\/en.wikipedia.org\/wiki\/Surveillance_capitalism\">unfortunately<\/a> hosted on Facebook, but there is a lot going on: Users show off programs they have written and discuss programming questions. There is also <a href=\"https:\/\/murray2.com\/forums\/commander-x16.9\/\">a forum on David Murray&rsquo;s website<\/a>.<\/strike><\/p>\n<p>The official forum is at <a href=\"https:\/\/www.commanderx16.com\/forum\/\">commanderx16.com<\/a>, with people discussing programming questions and showing off new programs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently got involved in the Commander X16 project. I would like to give an overview of the project and the vision behind it from my perspective. Philosophy The Commander X16 is a new 8 bit computer designed by David Murray of the well-known &ldquo;The 8-Bit Guy&rdquo; online video channel. 8 bit computers are great &#8230; <a title=\"Commander X16: Philosophy and Specification\" class=\"read-more\" href=\"https:\/\/www.pagetable.com\/?p=1373\" aria-label=\"Read more about Commander X16: Philosophy and Specification\">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,37],"tags":[],"class_list":["post-1373","post","type-post","status-publish","format-standard","hentry","category-2","category-x16"],"_links":{"self":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/1373","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=1373"}],"version-history":[{"count":0,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/1373\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}