<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaitou_ryaku</author_name>
  <author_url>https://blog.hatena.ne.jp/kaitou_ryaku/</author_url>
  <blog_title>しかくいさんかく</blog_title>
  <blog_url>https://sikakuisankaku.hatenablog.com/</blog_url>
  <categories>
    <anon>アドベントカレンダー2017</anon>
    <anon>低レイヤ</anon>
    <anon>マイクロアーキテクチャ</anon>
  </categories>
  <description>bit拡張と数値演算 この記事はひとりでCPUとエミュレータとコンパイラを作る Advent Calendar 2017の6日目の記事です。 昨日は変数(レジスタ)の数を4個に増やして、mov命令が実行できるCPUを設計した。 しかしmov命令だけでは大したことができない。 そこで今日は(浮動小数点を含む)四則演算ができるように回路を拡張する。 bit拡張 昨日はレジスタの種類を増やしたが、各レジスタの桁数は1bitのままだった。 2進数1桁の変数では計算もへったくれもない1ので、まずはbitを拡張しよう。 拡張方法は極めて簡単。 例えばmov a, bを考えると、aの1の位はbの1の位で上書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsikakuisankaku.hatenablog.com%2Fentry%2F2017%2F12%2F06%2F211236&quot; title=&quot;6日目: [CPU] bit拡張と数値演算 - しかくいさんかく&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>http://3.bp.blogspot.com/-I6oDjAndpFw/UgsxlI6ol9I/AAAAAAAAXaY/Jz8NP5uJhiQ/s800/soroban.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-06 21:12:36</published>
  <title>6日目: [CPU] bit拡張と数値演算</title>
  <type>rich</type>
  <url>https://sikakuisankaku.hatenablog.com/entry/2017/12/06/211236</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
