<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>アセンブラ &#8211; EXPERTGIG</title>
	<atom:link href="https://expertgig.jp/tag/%E3%82%A2%E3%82%BB%E3%83%B3%E3%83%96%E3%83%A9/feed/" rel="self" type="application/rss+xml" />
	<link>https://expertgig.jp</link>
	<description>工場IoT に特化したシステム開発</description>
	<lastBuildDate>Sat, 17 May 2025 16:12:17 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>PC-8001 のマシン語開発 (環境構築編)</title>
		<link>https://expertgig.jp/2025/05/17/pc-8001-%e3%81%ae%e3%83%9e%e3%82%b7%e3%83%b3%e8%aa%9e%e9%96%8b%e7%99%ba-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e7%b7%a8/</link>
					<comments>https://expertgig.jp/2025/05/17/pc-8001-%e3%81%ae%e3%83%9e%e3%82%b7%e3%83%b3%e8%aa%9e%e9%96%8b%e7%99%ba-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e7%b7%a8/#respond</comments>
		
		<dc:creator><![CDATA[Ariyuki Tano]]></dc:creator>
		<pubDate>Sat, 17 May 2025 05:20:06 +0000</pubDate>
				<category><![CDATA[マイコン]]></category>
		<category><![CDATA[情報発信基地]]></category>
		<category><![CDATA[PC-8001]]></category>
		<category><![CDATA[Z80]]></category>
		<category><![CDATA[アセンブラ]]></category>
		<category><![CDATA[エミュレータ]]></category>
		<category><![CDATA[マシン語]]></category>
		<guid isPermaLink="false">https://expertgig.jp/?p=5968</guid>

					<description><![CDATA[PC-8001 でオールマシン語のプログラムを実機でやろうと思うと気持ちが折れてしまいますので、2025年現在の方法で考えてみましょう。ちなみにこれは私の備忘録としての意味合いが強いです。最近忘れやすくて、細かく手順とか [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>PC-8001 でオールマシン語のプログラムを実機でやろうと思うと気持ちが折れてしまいますので、2025年現在の方法で考えてみましょう。ちなみにこれは私の備忘録としての意味合いが強いです。最近忘れやすくて、細かく手順とかをまとめておかないと本当にきれいさっぱり忘れてしまいます。</p>



<h2 class="wp-block-heading">まずはPC8001のエミュレータを準備</h2>



<p>PC-8001 は人気機種だけあって、エミュレータは多数存在します。それぞれ好みはあると思いますが、私は XM8 というエミュレータを利用しています。これはPC-8801MAのエミュレータなのですが、Nモードもありますので大丈夫です。</p>



<p>下記よりダウンロードできます。</p>



<p><a href="http://retropc.net/pi/xm8/index.html">http://retropc.net/pi/xm8/index.html</a></p>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" width="951" height="666" src="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-4.png" alt="" class="wp-image-5974" style="aspect-ratio:1.427927927927928;width:463px;height:auto" srcset="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-4.png 951w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-4-300x210.png 300w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-4-768x538.png 768w" sizes="(max-width: 951px) 100vw, 951px" /></figure>



<h2 class="wp-block-heading">専用エディタの準備 (BASIC打ちこみ用)</h2>



<p>いわゆるテキストエディタなのですが、当時のマイコンのASCIIコードは各社独自で、キャラ文字も独自に設定されていますので、これに対応しないといけません。</p>



<p>下記より N-FONT をダウンロード (OUT of STANDARD さんのページ )させていただいて、</p>



<p><a href="http://upd780c1.g1.xrea.com/pc-8001/index.html">http://upd780c1.g1.xrea.com/pc-8001/index.html</a></p>



<p>エディタは、DumpListEditor 一択でしょう。エディタだけでなく、エミュ用のファイル出力なども統合されています。<br>正直これがないと、どうにもなりません。2025年現在もアップデートされ続けています。<br><a href="https://bugfire2009.ojaru.jp/download.html#dleditor">https://bugfire2009.ojaru.jp/download.html#dleditor</a></p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" width="1024" height="654" src="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5-1024x654.png" alt="" class="wp-image-5975" style="aspect-ratio:1.5657492354740061;width:463px;height:auto" srcset="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5-1024x654.png 1024w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5-300x192.png 300w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5-768x491.png 768w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5-1536x982.png 1536w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-5.png 1549w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>使い方はこっちのページで。</p>



<p>/<a href="https://expertgig.jp/2025/05/17/dumplisteditor-%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9-pc-8001%e7%b7%a8/" data-type="post" data-id="5984">DumpListEditor の使い方  (PC-8001編)</a></p>



<p></p>



<p></p>



<h2 class="wp-block-heading">アセンブラ用エディタ</h2>



<p>これは何でもよいのですが、私は秀丸でやってます。色の設定などは 内藤氏の設定をまねてます。</p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" width="1021" height="1024" src="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-1021x1024.png" alt="" class="wp-image-5972" style="aspect-ratio:0.9970703125;width:499px;height:auto" srcset="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-1021x1024.png 1021w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-300x300.png 300w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-150x150.png 150w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-768x770.png 768w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2-1532x1536.png 1532w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-2.png 1585w" sizes="(max-width: 1021px) 100vw, 1021px" /></figure>



<p>この設定については、内藤氏が下記ページで説明されています。<br><a href="https://codeknowledge.livedoor.blog/archives/14714379.html">https://codeknowledge.livedoor.blog/archives/14714379.html</a></p>



<p>それで、最後に、『えーい面倒だ、これを食らえ!』となっていまして、私はこれをくらって設定しました。(笑)</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="292" src="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-3-1024x292.png" alt="" class="wp-image-5973" style="aspect-ratio:3.506849315068493;width:459px;height:auto" srcset="https://expertgig.jp/wp/wp-content/uploads/2025/05/image-3-1024x292.png 1024w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-3-300x85.png 300w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-3-768x219.png 768w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-3.png 1208w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<h2 class="wp-block-heading">Z80コンパイラ</h2>



<p>選択肢は数個ありますが、伝説のプログラマ 内藤氏 (ハイドライドなど開発された方) のおすすめが、AILZ80ASM ということで、それに倣って私も利用しています。</p>



<p><a href="https://github.com/AILight/AILZ80ASM">https://github.com/AILight/AILZ80ASM</a></p>



<h2 class="wp-block-heading">画面デザインツール</h2>



<p>上述の内藤氏作の 『IORI for PC-8001』をぜひ使っていただきたい。昔風に紙に書いてもいいのですが、PC-8001だとカラー画面を想定すると、カラー表示における制限事項がありますので、その辺のチェックもしてくれるこのツールはとても良いです。<br>これもダウンロードは、上記の DumpListEditor のダウンロードと同じ場所からお願いします。</p>



<p>下のスクリーンショットは、私が今回開発した OBSIDIAN のプレイ画面のデザインをしながら、1行の色数制限に引っ掛からないようにチェックした様子です。</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="890" height="523" src="https://expertgig.jp/wp/wp-content/uploads/2025/05/image.png" alt="" class="wp-image-5969" style="aspect-ratio:1.7017208413001912;width:429px;height:auto" srcset="https://expertgig.jp/wp/wp-content/uploads/2025/05/image.png 890w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-300x176.png 300w, https://expertgig.jp/wp/wp-content/uploads/2025/05/image-768x451.png 768w" sizes="(max-width: 890px) 100vw, 890px" /></figure>



<p>ちなみにですが私が独自にEXCELで作成して、開発時に使っているファイルもアップしておきます。</p>



<div class="wp-block-file"><a id="wp-block-file--media-62162822-8f58-483d-8823-7cbf50afbe56" href="blob:https://expertgig.jp/6e255286-bcb9-4f66-842a-86d91cbc4d3d">画面デザインシート_OBSIDIAN.xlsx</a><a href="blob:https://expertgig.jp/6e255286-bcb9-4f66-842a-86d91cbc4d3d" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-62162822-8f58-483d-8823-7cbf50afbe56">ダウンロード</a></div>



<p>マシン語でプログラムする際にVRAMのアドレスを直接指定したいケースが多々あります。またカラーモードにするとBASICですと画面左の1列が書き込みできなくなり、WIDTH 40,25 としても実際は 39×25 になってしまいます。理由は不明。仕様です (笑)。ですがマシン語ではVRAMに直接書き込めます。ますます理由が不明。</p>



<h2 class="wp-block-heading">環境設定の次は実際のアセンブルから実行まで</h2>



<p>環境がなんとか整いましたら、次はコードを書いて、アセンブラでアセンブルして読込可能なファイルを書き出して、エミュで実行となります。ここはかなりキモになります。これがスムーズにできないとデバッグで気持ちが折れちゃいますので。。</p>



<p>今回は、環境整備編 ということでここまで。あまり親切に書いていないので、もしご要望があれば連絡ください。追記します。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://expertgig.jp/2025/05/17/pc-8001-%e3%81%ae%e3%83%9e%e3%82%b7%e3%83%b3%e8%aa%9e%e9%96%8b%e7%99%ba-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e7%b7%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
