{"id":142,"date":"2022-02-03T02:20:52","date_gmt":"2022-02-03T02:20:52","guid":{"rendered":"https:\/\/paulcarbone.com\/50days\/?p=142"},"modified":"2022-02-04T02:38:03","modified_gmt":"2022-02-04T02:38:03","slug":"day-8","status":"publish","type":"post","link":"https:\/\/paulcarbone.com\/50days\/2022\/02\/03\/day-8\/","title":{"rendered":"Day 8: Z80 Assembly in CP\/M"},"content":{"rendered":"<p>I need to find a Z80 assembler that runs in CP\/M (if such a thing exists), and I need to figure out how to get it onto my RC2014 that&#8217;s now running ROMWBW.<\/p>\n<p>B:XM.COM is Xmodem, a popular tool for copying files via the serial port.\u00a0 REMEMBER B: DRIVE IS READ ONLY! You have to write to another drive, like C: (ask me how many times I tried to XM to B: drive&#8230; ).<\/p>\n<p>Xmodem is slllloooow, and for whatever reason, my serial terminal program doesn&#8217;t always initiate the transfer correctly (or it&#8217;s on the RC2014 side, who knows&#8230; )<\/p>\n<p>As far as compiler implementations, there seems to be a few:<\/p>\n<p><a href=\"http:\/\/www.cpm.z80.de\/develop\/zmac.zip\">ZMAC<\/a> &#8211; there&#8217;s a lot going on there, lots of files &amp; libraries across multiple user directories.. gonna hold off on that one for now.<\/p>\n<p><a href=\"http:\/\/www.mccrash-racing.co.uk\/philg\/cpm\/cpm.htm\">ZSM<\/a> &#8211; This looks short, sweet &amp; to the point.\u00a0 Lets start there.\u00a0 ZEN is also listed on that same site, maybe worth a look.\u00a0 There&#8217;s a more recent version on the gitub page.<\/p>\n<p>Z80ASM &#8211; found <a href=\"https:\/\/deramp.com\/downloads\/mfe_archive\/040-Software\/SLR%20Systems\/Z80ASM\/\">here<\/a><\/p>\n<p>There&#8217;s a whole thread about it <a href=\"http:\/\/8bitstack.co.uk\/forums\/topic\/z80-assembler-for-cp-m\">here<\/a><\/p>\n<p>Other things I need to look into to make this machine a little more user friendly:<\/p>\n<ul>\n<li>How can I add more drives?\u00a0 ROMWBW works a lot different than the vanilla implementation.<\/li>\n<li>How can I customize ZDE, or give it a start up macro file to fix a few things:\n<ul>\n<li>Don&#8217;t want to see CR&#8217;s as &#8216;&gt;&#8217; = ^OD<\/li>\n<li>Set right margin to 80 = ^OR80<\/li>\n<li>Set tab additional tab at columns 26 &amp; 31 = ^OI26 &amp; ^OI31<\/li>\n<li>Cycle quiet (helps unstick the header on my physical terminal) ^OQ ^OQ<\/li>\n<\/ul>\n<\/li>\n<li>do I need a different debugger if I&#8217;m using Z80 mnemonics?<\/li>\n<\/ul>\n<p>I&#8217;m getting nowhere with ZSM. No matter what I type I get &#8220;BAD LOAD&#8221;.\u00a0 There seems to be a <a href=\"https:\/\/github.com\/MiguelVis\/zsm\/tree\/master\/releases\">newer version here<\/a>, but I&#8217;m fucking done with this nonsense for today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I need to find a Z80 assembler that runs in CP\/M (if such a thing exists), and I need to figure out how to get it onto my RC2014 that&#8217;s now running ROMWBW. B:XM.COM is Xmodem, a popular tool for &hellip; <a href=\"https:\/\/paulcarbone.com\/50days\/2022\/02\/03\/day-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-blinkinglights"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":6,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/142\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}