<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>O3I</author_name>
  <author_url>https://blog.hatena.ne.jp/O3I/</author_url>
  <blog_title>CPU実験室</blog_title>
  <blog_url>https://yfl711.hateblo.jp/</blog_url>
  <categories>
    <anon>ADSP2k</anon>
  </categories>
  <description>PXレジスタを経由したポート出力はできましたが、今度はポート入力を考えてみます。やはりPXレジスタを読むアセンブラコードを書かなければなりませんがasm()文では引数でそのあたりの制御ができるようです。 ここでは以下のように記述しました。”=a”はAX系レジスタを経由してCの変数resultに代入することを指定します。 asm(&quot;%0=px;&quot;:&quot;=a&quot;(result)); これを使ってLCDの制御関数を記述してみました。データレジスタに出力するlcd_dat()はLEDのポートに出力する関数と同じ作りです。その中でLCDのステータスレジスタを読んでBUSYフラグが落ちるのを待つlcd_wai…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyfl711.hateblo.jp%2Fentry%2F2021%2F07%2F21%2F100649&quot; title=&quot;アセンブラI/F - CPU実験室&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/O/O3I/20210721/20210721091114.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-21 10:06:49</published>
  <title>アセンブラI/F</title>
  <type>rich</type>
  <url>https://yfl711.hateblo.jp/entry/2021/07/21/100649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
