<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="north"/>
      <a name="incoming" val="4"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="1"/>
      <a name="bit3" val="1"/>
    </tool>
    <tool name="Pin">
      <a name="facing" val="south"/>
    </tool>
    <tool name="Clock">
      <a name="facing" val="west"/>
    </tool>
    <tool name="Constant">
      <a name="facing" val="west"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="NOT Gate">
      <a name="facing" val="north"/>
    </tool>
    <tool name="AND Gate">
      <a name="facing" val="west"/>
    </tool>
    <tool name="OR Gate">
      <a name="facing" val="west"/>
    </tool>
    <tool name="NAND Gate">
      <a name="inputs" val="2"/>
    </tool>
    <tool name="NOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="Controlled Buffer">
      <a name="facing" val="south"/>
    </tool>
  </lib>
  <lib desc="#Plexers" name="2"/>
  <lib desc="#Arithmetic" name="3"/>
  <lib desc="#Memory" name="4">
    <tool name="ROM">
      <a name="dataWidth" val="24"/>
      <a name="contents">addr/data: 8 24
0
</a>
    </tool>
  </lib>
  <lib desc="#I/O" name="5">
    <tool name="DotMatrix">
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="12"/>
    </tool>
  </lib>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="CPU"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Menu Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OFlow"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate">
      <a name="size" val="20"/>
    </tool>
    <tool lib="1" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool lib="1" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </tool>
  </toolbar>
  <circuit name="CPU">
    <a name="circuit" val="CPU"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(210,310)" to="(210,440)"/>
    <wire from="(250,550)" to="(370,550)"/>
    <wire from="(270,150)" to="(270,160)"/>
    <wire from="(270,110)" to="(270,120)"/>
    <wire from="(260,180)" to="(260,190)"/>
    <wire from="(320,200)" to="(320,210)"/>
    <wire from="(270,230)" to="(270,250)"/>
    <wire from="(300,500)" to="(300,520)"/>
    <wire from="(40,470)" to="(40,550)"/>
    <wire from="(310,50)" to="(310,200)"/>
    <wire from="(230,230)" to="(230,250)"/>
    <wire from="(250,170)" to="(250,190)"/>
    <wire from="(250,370)" to="(250,390)"/>
    <wire from="(210,450)" to="(210,470)"/>
    <wire from="(210,200)" to="(210,300)"/>
    <wire from="(290,200)" to="(310,200)"/>
    <wire from="(290,360)" to="(310,360)"/>
    <wire from="(290,400)" to="(310,400)"/>
    <wire from="(40,550)" to="(250,550)"/>
    <wire from="(220,130)" to="(240,130)"/>
    <wire from="(290,310)" to="(370,310)"/>
    <wire from="(290,270)" to="(370,270)"/>
    <wire from="(290,350)" to="(370,350)"/>
    <wire from="(290,430)" to="(370,430)"/>
    <wire from="(290,110)" to="(370,110)"/>
    <wire from="(290,470)" to="(370,470)"/>
    <wire from="(210,450)" to="(220,450)"/>
    <wire from="(90,530)" to="(100,530)"/>
    <wire from="(300,60)" to="(300,120)"/>
    <wire from="(120,530)" to="(310,530)"/>
    <wire from="(310,230)" to="(370,230)"/>
    <wire from="(140,510)" to="(140,520)"/>
    <wire from="(210,300)" to="(210,310)"/>
    <wire from="(320,210)" to="(370,210)"/>
    <wire from="(260,230)" to="(260,250)"/>
    <wire from="(280,370)" to="(280,390)"/>
    <wire from="(290,440)" to="(460,440)"/>
    <wire from="(290,480)" to="(460,480)"/>
    <wire from="(230,110)" to="(230,190)"/>
    <wire from="(100,510)" to="(100,530)"/>
    <wire from="(260,180)" to="(370,180)"/>
    <wire from="(240,370)" to="(240,390)"/>
    <wire from="(310,200)" to="(310,230)"/>
    <wire from="(260,150)" to="(260,180)"/>
    <wire from="(230,80)" to="(230,110)"/>
    <wire from="(290,490)" to="(310,490)"/>
    <wire from="(210,100)" to="(210,140)"/>
    <wire from="(310,360)" to="(310,400)"/>
    <wire from="(190,470)" to="(210,470)"/>
    <wire from="(280,130)" to="(290,130)"/>
    <wire from="(290,500)" to="(300,500)"/>
    <wire from="(290,320)" to="(370,320)"/>
    <wire from="(290,280)" to="(370,280)"/>
    <wire from="(210,300)" to="(220,300)"/>
    <wire from="(210,140)" to="(210,200)"/>
    <wire from="(200,80)" to="(200,210)"/>
    <wire from="(310,230)" to="(310,360)"/>
    <wire from="(220,80)" to="(220,90)"/>
    <wire from="(320,220)" to="(370,220)"/>
    <wire from="(250,170)" to="(370,170)"/>
    <wire from="(290,110)" to="(290,130)"/>
    <wire from="(270,370)" to="(270,390)"/>
    <wire from="(320,220)" to="(320,240)"/>
    <wire from="(250,150)" to="(250,170)"/>
    <wire from="(250,230)" to="(250,250)"/>
    <wire from="(230,370)" to="(230,390)"/>
    <wire from="(210,100)" to="(370,100)"/>
    <wire from="(320,40)" to="(320,200)"/>
    <wire from="(290,210)" to="(320,210)"/>
    <wire from="(290,70)" to="(290,110)"/>
    <wire from="(310,490)" to="(310,530)"/>
    <wire from="(250,510)" to="(250,550)"/>
    <wire from="(300,120)" to="(300,160)"/>
    <wire from="(310,50)" to="(460,50)"/>
    <wire from="(200,210)" to="(220,210)"/>
    <wire from="(240,40)" to="(320,40)"/>
    <wire from="(290,290)" to="(370,290)"/>
    <wire from="(290,410)" to="(370,410)"/>
    <wire from="(290,450)" to="(370,450)"/>
    <wire from="(290,330)" to="(370,330)"/>
    <wire from="(210,310)" to="(220,310)"/>
    <wire from="(240,50)" to="(310,50)"/>
    <wire from="(400,220)" to="(460,220)"/>
    <wire from="(240,60)" to="(300,60)"/>
    <wire from="(210,440)" to="(210,450)"/>
    <wire from="(240,70)" to="(290,70)"/>
    <wire from="(280,230)" to="(280,250)"/>
    <wire from="(260,370)" to="(260,390)"/>
    <wire from="(120,510)" to="(120,530)"/>
    <wire from="(240,230)" to="(240,250)"/>
    <wire from="(210,80)" to="(210,100)"/>
    <wire from="(230,110)" to="(270,110)"/>
    <wire from="(210,140)" to="(240,140)"/>
    <wire from="(140,520)" to="(300,520)"/>
    <wire from="(300,120)" to="(460,120)"/>
    <wire from="(270,160)" to="(300,160)"/>
    <wire from="(290,220)" to="(320,220)"/>
    <wire from="(220,90)" to="(370,90)"/>
    <wire from="(220,90)" to="(220,130)"/>
    <wire from="(320,200)" to="(460,200)"/>
    <wire from="(320,240)" to="(460,240)"/>
    <wire from="(290,300)" to="(370,300)"/>
    <wire from="(290,260)" to="(370,260)"/>
    <wire from="(290,340)" to="(370,340)"/>
    <wire from="(290,420)" to="(370,420)"/>
    <wire from="(290,460)" to="(370,460)"/>
    <wire from="(210,200)" to="(220,200)"/>
    <wire from="(210,440)" to="(220,440)"/>
    <wire from="(40,470)" to="(50,470)"/>
    <comp lib="6" loc="(96,80)" name="Text">
      <a name="text" val="By Nick,"/>
    </comp>
    <comp lib="0" loc="(460,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Reset"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(290,200)" name="Instr Decode"/>
    <comp loc="(290,400)" name="PC AD"/>
    <comp lib="4" loc="(190,470)" name="RAM">
      <a name="addrWidth" val="16"/>
    </comp>
    <comp lib="5" loc="(460,200)" name="LED">
      <a name="color" val="#00ff00"/>
      <a name="label" val="Exec"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(370,170)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="2"/>
    </comp>
    <comp loc="(280,130)" name="8-bit ALU"/>
    <comp lib="5" loc="(460,440)" name="LED">
      <a name="label" val="PC Oflow"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(370,550)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="16"/>
      <a name="matrixrows" val="1"/>
    </comp>
    <comp lib="5" loc="(460,120)" name="LED">
      <a name="color" val="#00ff00"/>
      <a name="label" val="C"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(460,240)" name="LED">
      <a name="color" val="#00ff00"/>
      <a name="label" val="Fetch"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(370,410)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="3"/>
    </comp>
    <comp lib="6" loc="(91,98)" name="Text">
      <a name="text" val="Aiden,"/>
    </comp>
    <comp lib="0" loc="(460,220)" name="Clock">
      <a name="facing" val="west"/>
      <a name="label" val="Clock"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(290,260)" name="GP Regs"/>
    <comp lib="6" loc="(101,115)" name="Text">
      <a name="text" val="and Mark"/>
    </comp>
    <comp loc="(400,220)" name="Sequencer"/>
    <comp lib="6" loc="(107,51)" name="Text">
      <a name="text" val="NiAiMa CPU"/>
    </comp>
    <comp lib="5" loc="(370,450)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="3"/>
    </comp>
    <comp lib="5" loc="(460,480)" name="LED">
      <a name="label" val="AD Oflow"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(370,260)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="10"/>
    </comp>
    <comp loc="(240,40)" name="Acc+Carry"/>
    <comp lib="0" loc="(90,530)" name="Constant"/>
    <comp lib="5" loc="(370,90)" name="DotMatrix">
      <a name="inputtype" val="row"/>
      <a name="matrixcols" val="8"/>
      <a name="matrixrows" val="3"/>
    </comp>
  </circuit>
  <circuit name="GP Regs">
    <a name="circuit" val="GP Regs"/>
    <a name="clabel" val="GP Reg"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(310,500)" to="(310,580)"/>
    <wire from="(310,340)" to="(310,420)"/>
    <wire from="(310,180)" to="(310,260)"/>
    <wire from="(310,580)" to="(310,660)"/>
    <wire from="(310,260)" to="(310,340)"/>
    <wire from="(310,100)" to="(310,180)"/>
    <wire from="(310,420)" to="(310,500)"/>
    <wire from="(310,660)" to="(310,740)"/>
    <wire from="(310,740)" to="(310,820)"/>
    <wire from="(180,110)" to="(220,110)"/>
    <wire from="(180,430)" to="(220,430)"/>
    <wire from="(180,190)" to="(220,190)"/>
    <wire from="(180,510)" to="(220,510)"/>
    <wire from="(180,750)" to="(220,750)"/>
    <wire from="(180,830)" to="(220,830)"/>
    <wire from="(310,820)" to="(310,930)"/>
    <wire from="(330,450)" to="(340,450)"/>
    <wire from="(330,530)" to="(340,530)"/>
    <wire from="(330,370)" to="(340,370)"/>
    <wire from="(330,290)" to="(340,290)"/>
    <wire from="(330,610)" to="(340,610)"/>
    <wire from="(330,690)" to="(340,690)"/>
    <wire from="(330,770)" to="(340,770)"/>
    <wire from="(330,850)" to="(340,850)"/>
    <wire from="(330,130)" to="(340,130)"/>
    <wire from="(330,210)" to="(340,210)"/>
    <wire from="(200,40)" to="(200,100)"/>
    <wire from="(140,860)" to="(140,930)"/>
    <wire from="(140,460)" to="(140,540)"/>
    <wire from="(140,380)" to="(140,460)"/>
    <wire from="(140,620)" to="(140,700)"/>
    <wire from="(140,780)" to="(140,860)"/>
    <wire from="(140,700)" to="(140,780)"/>
    <wire from="(140,300)" to="(140,380)"/>
    <wire from="(140,220)" to="(140,300)"/>
    <wire from="(140,540)" to="(140,620)"/>
    <wire from="(140,140)" to="(140,220)"/>
    <wire from="(310,40)" to="(310,100)"/>
    <wire from="(370,620)" to="(430,620)"/>
    <wire from="(370,300)" to="(430,300)"/>
    <wire from="(370,140)" to="(430,140)"/>
    <wire from="(370,460)" to="(430,460)"/>
    <wire from="(370,700)" to="(430,700)"/>
    <wire from="(370,380)" to="(430,380)"/>
    <wire from="(370,220)" to="(430,220)"/>
    <wire from="(370,540)" to="(430,540)"/>
    <wire from="(370,780)" to="(430,780)"/>
    <wire from="(370,860)" to="(430,860)"/>
    <wire from="(290,710)" to="(340,710)"/>
    <wire from="(290,630)" to="(340,630)"/>
    <wire from="(290,870)" to="(340,870)"/>
    <wire from="(290,790)" to="(340,790)"/>
    <wire from="(290,390)" to="(340,390)"/>
    <wire from="(290,230)" to="(340,230)"/>
    <wire from="(290,150)" to="(340,150)"/>
    <wire from="(290,310)" to="(340,310)"/>
    <wire from="(290,550)" to="(340,550)"/>
    <wire from="(290,470)" to="(340,470)"/>
    <wire from="(160,530)" to="(160,610)"/>
    <wire from="(160,370)" to="(160,450)"/>
    <wire from="(160,690)" to="(160,770)"/>
    <wire from="(160,610)" to="(160,690)"/>
    <wire from="(160,210)" to="(160,290)"/>
    <wire from="(160,450)" to="(160,530)"/>
    <wire from="(160,130)" to="(160,210)"/>
    <wire from="(160,290)" to="(160,370)"/>
    <wire from="(160,770)" to="(160,850)"/>
    <wire from="(160,850)" to="(160,930)"/>
    <wire from="(420,630)" to="(420,710)"/>
    <wire from="(420,790)" to="(420,870)"/>
    <wire from="(420,310)" to="(420,390)"/>
    <wire from="(420,470)" to="(420,550)"/>
    <wire from="(420,150)" to="(420,230)"/>
    <wire from="(420,710)" to="(420,790)"/>
    <wire from="(420,390)" to="(420,470)"/>
    <wire from="(420,550)" to="(420,630)"/>
    <wire from="(420,230)" to="(420,310)"/>
    <wire from="(490,60)" to="(490,150)"/>
    <wire from="(450,250)" to="(480,250)"/>
    <wire from="(450,330)" to="(480,330)"/>
    <wire from="(450,170)" to="(480,170)"/>
    <wire from="(450,730)" to="(480,730)"/>
    <wire from="(450,890)" to="(480,890)"/>
    <wire from="(450,570)" to="(480,570)"/>
    <wire from="(450,410)" to="(480,410)"/>
    <wire from="(450,650)" to="(480,650)"/>
    <wire from="(450,810)" to="(480,810)"/>
    <wire from="(450,490)" to="(480,490)"/>
    <wire from="(160,690)" to="(230,690)"/>
    <wire from="(160,530)" to="(230,530)"/>
    <wire from="(160,610)" to="(230,610)"/>
    <wire from="(160,450)" to="(230,450)"/>
    <wire from="(290,870)" to="(290,930)"/>
    <wire from="(180,40)" to="(180,110)"/>
    <wire from="(290,630)" to="(290,710)"/>
    <wire from="(290,470)" to="(290,550)"/>
    <wire from="(290,790)" to="(290,870)"/>
    <wire from="(290,150)" to="(290,230)"/>
    <wire from="(290,310)" to="(290,390)"/>
    <wire from="(290,550)" to="(290,630)"/>
    <wire from="(290,390)" to="(290,470)"/>
    <wire from="(290,230)" to="(290,310)"/>
    <wire from="(290,710)" to="(290,790)"/>
    <wire from="(140,780)" to="(230,780)"/>
    <wire from="(140,860)" to="(230,860)"/>
    <wire from="(460,550)" to="(490,550)"/>
    <wire from="(460,710)" to="(490,710)"/>
    <wire from="(460,790)" to="(490,790)"/>
    <wire from="(460,630)" to="(490,630)"/>
    <wire from="(460,230)" to="(490,230)"/>
    <wire from="(460,150)" to="(490,150)"/>
    <wire from="(460,870)" to="(490,870)"/>
    <wire from="(460,390)" to="(490,390)"/>
    <wire from="(460,470)" to="(490,470)"/>
    <wire from="(460,310)" to="(490,310)"/>
    <wire from="(330,440)" to="(340,440)"/>
    <wire from="(330,520)" to="(340,520)"/>
    <wire from="(330,280)" to="(340,280)"/>
    <wire from="(330,120)" to="(340,120)"/>
    <wire from="(330,200)" to="(340,200)"/>
    <wire from="(330,360)" to="(340,360)"/>
    <wire from="(330,600)" to="(340,600)"/>
    <wire from="(330,680)" to="(340,680)"/>
    <wire from="(330,760)" to="(340,760)"/>
    <wire from="(330,840)" to="(340,840)"/>
    <wire from="(260,520)" to="(330,520)"/>
    <wire from="(260,440)" to="(330,440)"/>
    <wire from="(260,600)" to="(330,600)"/>
    <wire from="(260,280)" to="(330,280)"/>
    <wire from="(260,360)" to="(330,360)"/>
    <wire from="(260,760)" to="(330,760)"/>
    <wire from="(260,680)" to="(330,680)"/>
    <wire from="(260,840)" to="(330,840)"/>
    <wire from="(260,120)" to="(330,120)"/>
    <wire from="(260,200)" to="(330,200)"/>
    <wire from="(440,560)" to="(440,580)"/>
    <wire from="(440,400)" to="(440,420)"/>
    <wire from="(440,240)" to="(440,260)"/>
    <wire from="(440,640)" to="(440,660)"/>
    <wire from="(440,480)" to="(440,500)"/>
    <wire from="(440,320)" to="(440,340)"/>
    <wire from="(440,160)" to="(440,180)"/>
    <wire from="(440,880)" to="(440,900)"/>
    <wire from="(440,720)" to="(440,740)"/>
    <wire from="(440,800)" to="(440,820)"/>
    <wire from="(470,510)" to="(470,540)"/>
    <wire from="(470,430)" to="(470,460)"/>
    <wire from="(470,590)" to="(470,620)"/>
    <wire from="(470,670)" to="(470,700)"/>
    <wire from="(470,750)" to="(470,780)"/>
    <wire from="(470,830)" to="(470,860)"/>
    <wire from="(470,110)" to="(470,140)"/>
    <wire from="(470,190)" to="(470,220)"/>
    <wire from="(470,270)" to="(470,300)"/>
    <wire from="(470,350)" to="(470,380)"/>
    <wire from="(480,930)" to="(520,930)"/>
    <wire from="(200,660)" to="(230,660)"/>
    <wire from="(200,820)" to="(230,820)"/>
    <wire from="(200,180)" to="(230,180)"/>
    <wire from="(200,340)" to="(230,340)"/>
    <wire from="(200,500)" to="(230,500)"/>
    <wire from="(290,40)" to="(290,150)"/>
    <wire from="(460,700)" to="(470,700)"/>
    <wire from="(460,620)" to="(470,620)"/>
    <wire from="(460,780)" to="(470,780)"/>
    <wire from="(460,860)" to="(470,860)"/>
    <wire from="(460,380)" to="(470,380)"/>
    <wire from="(460,220)" to="(470,220)"/>
    <wire from="(460,300)" to="(470,300)"/>
    <wire from="(460,140)" to="(470,140)"/>
    <wire from="(460,540)" to="(470,540)"/>
    <wire from="(460,460)" to="(470,460)"/>
    <wire from="(440,580)" to="(520,580)"/>
    <wire from="(440,420)" to="(520,420)"/>
    <wire from="(440,260)" to="(520,260)"/>
    <wire from="(440,500)" to="(520,500)"/>
    <wire from="(440,340)" to="(520,340)"/>
    <wire from="(440,180)" to="(520,180)"/>
    <wire from="(440,900)" to="(520,900)"/>
    <wire from="(440,740)" to="(520,740)"/>
    <wire from="(440,820)" to="(520,820)"/>
    <wire from="(440,660)" to="(520,660)"/>
    <wire from="(180,350)" to="(230,350)"/>
    <wire from="(180,270)" to="(230,270)"/>
    <wire from="(180,670)" to="(230,670)"/>
    <wire from="(180,590)" to="(230,590)"/>
    <wire from="(160,40)" to="(160,130)"/>
    <wire from="(310,180)" to="(340,180)"/>
    <wire from="(310,340)" to="(340,340)"/>
    <wire from="(310,500)" to="(340,500)"/>
    <wire from="(310,580)" to="(340,580)"/>
    <wire from="(310,100)" to="(340,100)"/>
    <wire from="(310,260)" to="(340,260)"/>
    <wire from="(310,420)" to="(340,420)"/>
    <wire from="(310,660)" to="(340,660)"/>
    <wire from="(310,820)" to="(340,820)"/>
    <wire from="(310,740)" to="(340,740)"/>
    <wire from="(480,890)" to="(480,930)"/>
    <wire from="(420,550)" to="(430,550)"/>
    <wire from="(420,630)" to="(430,630)"/>
    <wire from="(420,470)" to="(430,470)"/>
    <wire from="(420,390)" to="(430,390)"/>
    <wire from="(420,710)" to="(430,710)"/>
    <wire from="(420,790)" to="(430,790)"/>
    <wire from="(420,870)" to="(430,870)"/>
    <wire from="(420,310)" to="(430,310)"/>
    <wire from="(420,150)" to="(430,150)"/>
    <wire from="(420,230)" to="(430,230)"/>
    <wire from="(160,770)" to="(220,770)"/>
    <wire from="(160,130)" to="(220,130)"/>
    <wire from="(160,290)" to="(220,290)"/>
    <wire from="(160,850)" to="(220,850)"/>
    <wire from="(160,370)" to="(220,370)"/>
    <wire from="(160,210)" to="(220,210)"/>
    <wire from="(180,110)" to="(180,190)"/>
    <wire from="(180,270)" to="(180,350)"/>
    <wire from="(180,430)" to="(180,510)"/>
    <wire from="(180,190)" to="(180,270)"/>
    <wire from="(180,510)" to="(180,590)"/>
    <wire from="(180,350)" to="(180,430)"/>
    <wire from="(180,590)" to="(180,670)"/>
    <wire from="(180,750)" to="(180,830)"/>
    <wire from="(180,670)" to="(180,750)"/>
    <wire from="(480,570)" to="(480,650)"/>
    <wire from="(480,730)" to="(480,810)"/>
    <wire from="(480,490)" to="(480,570)"/>
    <wire from="(480,810)" to="(480,890)"/>
    <wire from="(480,410)" to="(480,490)"/>
    <wire from="(480,250)" to="(480,330)"/>
    <wire from="(480,330)" to="(480,410)"/>
    <wire from="(480,650)" to="(480,730)"/>
    <wire from="(480,170)" to="(480,250)"/>
    <wire from="(370,270)" to="(470,270)"/>
    <wire from="(370,590)" to="(470,590)"/>
    <wire from="(370,110)" to="(470,110)"/>
    <wire from="(370,430)" to="(470,430)"/>
    <wire from="(370,670)" to="(470,670)"/>
    <wire from="(370,350)" to="(470,350)"/>
    <wire from="(370,190)" to="(470,190)"/>
    <wire from="(370,510)" to="(470,510)"/>
    <wire from="(370,750)" to="(470,750)"/>
    <wire from="(370,830)" to="(470,830)"/>
    <wire from="(180,830)" to="(180,930)"/>
    <wire from="(140,700)" to="(220,700)"/>
    <wire from="(140,380)" to="(220,380)"/>
    <wire from="(140,220)" to="(220,220)"/>
    <wire from="(140,540)" to="(220,540)"/>
    <wire from="(140,620)" to="(220,620)"/>
    <wire from="(140,140)" to="(220,140)"/>
    <wire from="(140,300)" to="(220,300)"/>
    <wire from="(140,460)" to="(220,460)"/>
    <wire from="(420,80)" to="(420,150)"/>
    <wire from="(110,60)" to="(490,60)"/>
    <wire from="(110,80)" to="(420,80)"/>
    <wire from="(450,320)" to="(450,330)"/>
    <wire from="(450,160)" to="(450,170)"/>
    <wire from="(450,240)" to="(450,250)"/>
    <wire from="(450,400)" to="(450,410)"/>
    <wire from="(450,640)" to="(450,650)"/>
    <wire from="(450,800)" to="(450,810)"/>
    <wire from="(450,480)" to="(450,490)"/>
    <wire from="(450,720)" to="(450,730)"/>
    <wire from="(450,880)" to="(450,890)"/>
    <wire from="(450,560)" to="(450,570)"/>
    <wire from="(330,520)" to="(330,530)"/>
    <wire from="(330,440)" to="(330,450)"/>
    <wire from="(330,680)" to="(330,690)"/>
    <wire from="(330,600)" to="(330,610)"/>
    <wire from="(330,360)" to="(330,370)"/>
    <wire from="(330,280)" to="(330,290)"/>
    <wire from="(330,840)" to="(330,850)"/>
    <wire from="(330,760)" to="(330,770)"/>
    <wire from="(330,200)" to="(330,210)"/>
    <wire from="(330,120)" to="(330,130)"/>
    <wire from="(200,580)" to="(200,660)"/>
    <wire from="(200,420)" to="(200,500)"/>
    <wire from="(200,740)" to="(200,820)"/>
    <wire from="(200,100)" to="(200,180)"/>
    <wire from="(200,260)" to="(200,340)"/>
    <wire from="(200,500)" to="(200,580)"/>
    <wire from="(200,340)" to="(200,420)"/>
    <wire from="(200,180)" to="(200,260)"/>
    <wire from="(200,660)" to="(200,740)"/>
    <wire from="(490,710)" to="(490,790)"/>
    <wire from="(490,470)" to="(490,550)"/>
    <wire from="(490,790)" to="(490,870)"/>
    <wire from="(490,390)" to="(490,470)"/>
    <wire from="(490,230)" to="(490,310)"/>
    <wire from="(490,310)" to="(490,390)"/>
    <wire from="(490,550)" to="(490,630)"/>
    <wire from="(490,630)" to="(490,710)"/>
    <wire from="(490,150)" to="(490,230)"/>
    <wire from="(140,40)" to="(140,140)"/>
    <wire from="(200,820)" to="(200,930)"/>
    <wire from="(200,580)" to="(220,580)"/>
    <wire from="(200,740)" to="(220,740)"/>
    <wire from="(200,260)" to="(220,260)"/>
    <wire from="(200,100)" to="(220,100)"/>
    <wire from="(200,420)" to="(220,420)"/>
    <comp lib="1" loc="(260,360)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="3"/>
      <a name="negate2" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp loc="(460,780)" name="8-bit register">
      <a name="label" val="M"/>
    </comp>
    <comp lib="0" loc="(180,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(310,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Wr"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(260,280)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="2"/>
      <a name="negate0" val="true"/>
      <a name="negate2" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="1" loc="(260,520)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="5"/>
      <a name="negate1" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="1" loc="(370,670)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(520,740)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="L"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(520,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="F"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(370,700)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(370,270)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(180,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(200,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(160,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(460,540)" name="8-bit register">
      <a name="label" val="J"/>
    </comp>
    <comp lib="1" loc="(260,200)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="1"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="0" loc="(310,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Wr"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(370,300)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(260,680)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="7"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="1" loc="(370,380)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(370,190)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(520,900)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="N"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(520,420)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="H"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,600)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="6"/>
      <a name="negate0" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="0" loc="(520,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="E"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(370,140)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(370,510)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(160,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(370,540)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="0" loc="(110,60)" name="Pin">
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DIn"/>
    </comp>
    <comp lib="1" loc="(370,110)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(520,820)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="M"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(140,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(370,460)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp loc="(460,140)" name="8-bit register">
      <a name="label" val="E"/>
    </comp>
    <comp lib="1" loc="(370,750)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="1" loc="(260,120)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="0"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="0" loc="(110,80)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DOut"/>
    </comp>
    <comp lib="0" loc="(520,500)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="I"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(370,350)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="1" loc="(370,860)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="0" loc="(140,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(460,700)" name="8-bit register">
      <a name="label" val="L"/>
    </comp>
    <comp loc="(460,220)" name="8-bit register">
      <a name="label" val="F"/>
    </comp>
    <comp lib="1" loc="(260,840)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="9"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="1" loc="(370,220)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="0" loc="(290,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Rd"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(290,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Rd"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(460,380)" name="8-bit register">
      <a name="label" val="H"/>
    </comp>
    <comp lib="0" loc="(200,930)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(520,340)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="G"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,440)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="4"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
      <a name="negate3" val="true"/>
    </comp>
    <comp lib="0" loc="(520,930)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(460,620)" name="8-bit register">
      <a name="label" val="K"/>
    </comp>
    <comp loc="(460,460)" name="8-bit register">
      <a name="label" val="I"/>
    </comp>
    <comp loc="(460,860)" name="8-bit register">
      <a name="label" val="N"/>
    </comp>
    <comp lib="1" loc="(370,430)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp loc="(460,300)" name="8-bit register">
      <a name="label" val="G"/>
    </comp>
    <comp lib="1" loc="(370,590)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(520,580)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="J"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,760)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="8"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="1" loc="(370,830)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="1" loc="(370,780)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(370,620)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="0" loc="(520,660)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="K"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="PC AD">
    <a name="circuit" val="PC AD"/>
    <a name="clabel" val="PC AD"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(310,100)" to="(370,100)"/>
    <wire from="(290,40)" to="(290,110)"/>
    <wire from="(510,460)" to="(570,460)"/>
    <wire from="(140,450)" to="(140,520)"/>
    <wire from="(110,60)" to="(360,60)"/>
    <wire from="(520,120)" to="(520,390)"/>
    <wire from="(180,300)" to="(230,300)"/>
    <wire from="(180,420)" to="(230,420)"/>
    <wire from="(140,520)" to="(310,520)"/>
    <wire from="(400,400)" to="(400,430)"/>
    <wire from="(550,110)" to="(550,130)"/>
    <wire from="(470,420)" to="(470,510)"/>
    <wire from="(470,110)" to="(470,390)"/>
    <wire from="(200,100)" to="(230,100)"/>
    <wire from="(200,220)" to="(230,220)"/>
    <wire from="(340,330)" to="(340,430)"/>
    <wire from="(140,390)" to="(230,390)"/>
    <wire from="(420,100)" to="(420,390)"/>
    <wire from="(290,480)" to="(310,480)"/>
    <wire from="(400,400)" to="(410,400)"/>
    <wire from="(400,80)" to="(410,80)"/>
    <wire from="(470,510)" to="(480,510)"/>
    <wire from="(400,130)" to="(540,130)"/>
    <wire from="(360,80)" to="(370,80)"/>
    <wire from="(290,110)" to="(370,110)"/>
    <wire from="(260,240)" to="(340,240)"/>
    <wire from="(400,300)" to="(480,300)"/>
    <wire from="(330,130)" to="(330,180)"/>
    <wire from="(160,190)" to="(230,190)"/>
    <wire from="(430,290)" to="(560,290)"/>
    <wire from="(290,110)" to="(290,300)"/>
    <wire from="(350,90)" to="(350,280)"/>
    <wire from="(400,110)" to="(470,110)"/>
    <wire from="(140,140)" to="(140,200)"/>
    <wire from="(260,370)" to="(330,370)"/>
    <wire from="(160,320)" to="(160,380)"/>
    <wire from="(180,300)" to="(180,360)"/>
    <wire from="(200,40)" to="(200,100)"/>
    <wire from="(200,160)" to="(200,220)"/>
    <wire from="(560,290)" to="(560,300)"/>
    <wire from="(140,260)" to="(140,330)"/>
    <wire from="(180,420)" to="(180,490)"/>
    <wire from="(160,440)" to="(160,510)"/>
    <wire from="(160,320)" to="(220,320)"/>
    <wire from="(180,110)" to="(230,110)"/>
    <wire from="(180,230)" to="(230,230)"/>
    <wire from="(160,40)" to="(160,130)"/>
    <wire from="(180,360)" to="(220,360)"/>
    <wire from="(340,140)" to="(340,240)"/>
    <wire from="(200,350)" to="(230,350)"/>
    <wire from="(420,420)" to="(420,520)"/>
    <wire from="(140,200)" to="(230,200)"/>
    <wire from="(340,330)" to="(370,330)"/>
    <wire from="(200,160)" to="(220,160)"/>
    <wire from="(310,40)" to="(310,100)"/>
    <wire from="(160,440)" to="(230,440)"/>
    <wire from="(410,80)" to="(410,270)"/>
    <wire from="(310,100)" to="(310,290)"/>
    <wire from="(180,490)" to="(310,490)"/>
    <wire from="(260,180)" to="(330,180)"/>
    <wire from="(180,110)" to="(180,170)"/>
    <wire from="(160,130)" to="(160,190)"/>
    <wire from="(140,390)" to="(140,450)"/>
    <wire from="(200,290)" to="(200,350)"/>
    <wire from="(340,430)" to="(400,430)"/>
    <wire from="(560,100)" to="(560,110)"/>
    <wire from="(160,250)" to="(160,320)"/>
    <wire from="(180,230)" to="(180,300)"/>
    <wire from="(160,130)" to="(220,130)"/>
    <wire from="(420,520)" to="(470,520)"/>
    <wire from="(410,70)" to="(410,80)"/>
    <wire from="(400,120)" to="(520,120)"/>
    <wire from="(400,280)" to="(570,280)"/>
    <wire from="(360,60)" to="(360,80)"/>
    <wire from="(110,90)" to="(350,90)"/>
    <wire from="(260,310)" to="(370,310)"/>
    <wire from="(500,310)" to="(500,390)"/>
    <wire from="(180,170)" to="(220,170)"/>
    <wire from="(540,320)" to="(540,340)"/>
    <wire from="(330,320)" to="(370,320)"/>
    <wire from="(140,330)" to="(230,330)"/>
    <wire from="(140,450)" to="(230,450)"/>
    <wire from="(550,320)" to="(570,320)"/>
    <wire from="(340,140)" to="(370,140)"/>
    <wire from="(350,280)" to="(370,280)"/>
    <wire from="(540,340)" to="(570,340)"/>
    <wire from="(200,290)" to="(220,290)"/>
    <wire from="(200,410)" to="(220,410)"/>
    <wire from="(470,110)" to="(550,110)"/>
    <wire from="(160,250)" to="(230,250)"/>
    <wire from="(360,80)" to="(360,270)"/>
    <wire from="(140,200)" to="(140,260)"/>
    <wire from="(160,380)" to="(160,440)"/>
    <wire from="(180,360)" to="(180,420)"/>
    <wire from="(560,300)" to="(570,300)"/>
    <wire from="(200,100)" to="(200,160)"/>
    <wire from="(310,290)" to="(370,290)"/>
    <wire from="(180,40)" to="(180,110)"/>
    <wire from="(200,220)" to="(200,290)"/>
    <wire from="(400,430)" to="(450,430)"/>
    <wire from="(480,510)" to="(480,520)"/>
    <wire from="(400,90)" to="(570,90)"/>
    <wire from="(260,120)" to="(370,120)"/>
    <wire from="(450,400)" to="(450,430)"/>
    <wire from="(400,310)" to="(500,310)"/>
    <wire from="(550,300)" to="(550,320)"/>
    <wire from="(540,130)" to="(540,150)"/>
    <wire from="(330,130)" to="(370,130)"/>
    <wire from="(480,300)" to="(480,390)"/>
    <wire from="(340,500)" to="(570,500)"/>
    <wire from="(430,290)" to="(430,390)"/>
    <wire from="(140,140)" to="(230,140)"/>
    <wire from="(140,260)" to="(230,260)"/>
    <wire from="(400,290)" to="(430,290)"/>
    <wire from="(550,130)" to="(570,130)"/>
    <wire from="(140,40)" to="(140,140)"/>
    <wire from="(410,70)" to="(570,70)"/>
    <wire from="(160,510)" to="(310,510)"/>
    <wire from="(350,90)" to="(370,90)"/>
    <wire from="(400,100)" to="(420,100)"/>
    <wire from="(540,150)" to="(570,150)"/>
    <wire from="(510,420)" to="(510,460)"/>
    <wire from="(290,300)" to="(290,480)"/>
    <wire from="(400,270)" to="(410,270)"/>
    <wire from="(450,400)" to="(460,400)"/>
    <wire from="(400,320)" to="(540,320)"/>
    <wire from="(420,100)" to="(560,100)"/>
    <wire from="(360,270)" to="(370,270)"/>
    <wire from="(290,300)" to="(370,300)"/>
    <wire from="(260,430)" to="(340,430)"/>
    <wire from="(330,320)" to="(330,370)"/>
    <wire from="(160,380)" to="(230,380)"/>
    <wire from="(480,300)" to="(550,300)"/>
    <wire from="(160,190)" to="(160,250)"/>
    <wire from="(180,170)" to="(180,230)"/>
    <wire from="(140,330)" to="(140,390)"/>
    <wire from="(560,110)" to="(570,110)"/>
    <wire from="(200,350)" to="(200,410)"/>
    <comp lib="0" loc="(570,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="PCHi"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(340,500)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
    </comp>
    <comp lib="0" loc="(490,540)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="incoming" val="16"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="0"/>
      <a name="bit3" val="0"/>
      <a name="bit4" val="0"/>
      <a name="bit5" val="0"/>
      <a name="bit6" val="0"/>
      <a name="bit7" val="0"/>
      <a name="bit8" val="1"/>
      <a name="bit9" val="1"/>
      <a name="bit10" val="1"/>
      <a name="bit11" val="1"/>
      <a name="bit12" val="1"/>
      <a name="bit13" val="1"/>
      <a name="bit14" val="1"/>
      <a name="bit15" val="1"/>
    </comp>
    <comp lib="0" loc="(570,500)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="MRd"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(200,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(260,240)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="F"/>
    </comp>
    <comp lib="0" loc="(570,90)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="PHold"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(110,60)" name="Pin">
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DIn"/>
    </comp>
    <comp lib="0" loc="(570,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="ADLo"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(310,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Wr"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(260,430)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="E"/>
      <a name="negate0" val="true"/>
    </comp>
    <comp lib="1" loc="(260,120)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="B"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="1" loc="(260,180)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="C"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(570,300)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="ADHi"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(570,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="AHold"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(160,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(420,390)" name="8-bit Mux"/>
    <comp lib="1" loc="(260,310)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="A"/>
      <a name="negate0" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="1" loc="(510,420)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(290,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Rd"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(400,270)" name="16-bit SpecialReg">
      <a name="label" val="AD"/>
    </comp>
    <comp lib="0" loc="(110,90)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DOut"/>
    </comp>
    <comp lib="0" loc="(140,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(570,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="PCOFlow"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(570,340)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="ADOFlow"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(570,460)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="MWr"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(400,80)" name="16-bit SpecialReg">
      <a name="label" val="PC"/>
    </comp>
    <comp lib="0" loc="(570,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="PCLo"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(570,70)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(180,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(260,370)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="D"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp loc="(470,390)" name="8-bit Mux"/>
    <comp lib="0" loc="(490,540)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="label" val="ADDR"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
  <circuit name="Acc+Carry">
    <a name="circuit" val="Acc+Carry"/>
    <a name="clabel" val="Acc+C"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(360,50)" to="(420,50)"/>
    <wire from="(270,170)" to="(460,170)"/>
    <wire from="(100,110)" to="(100,180)"/>
    <wire from="(410,140)" to="(460,140)"/>
    <wire from="(220,50)" to="(220,60)"/>
    <wire from="(200,120)" to="(200,130)"/>
    <wire from="(240,100)" to="(240,110)"/>
    <wire from="(340,130)" to="(390,130)"/>
    <wire from="(200,130)" to="(250,130)"/>
    <wire from="(220,50)" to="(270,50)"/>
    <wire from="(340,120)" to="(340,130)"/>
    <wire from="(360,50)" to="(360,60)"/>
    <wire from="(380,100)" to="(380,110)"/>
    <wire from="(390,100)" to="(390,110)"/>
    <wire from="(40,100)" to="(40,180)"/>
    <wire from="(360,80)" to="(360,100)"/>
    <wire from="(390,110)" to="(390,130)"/>
    <wire from="(270,90)" to="(270,170)"/>
    <wire from="(220,80)" to="(220,100)"/>
    <wire from="(420,50)" to="(420,80)"/>
    <wire from="(270,50)" to="(270,80)"/>
    <wire from="(250,100)" to="(250,130)"/>
    <wire from="(420,50)" to="(460,50)"/>
    <wire from="(210,110)" to="(240,110)"/>
    <wire from="(270,50)" to="(360,50)"/>
    <wire from="(250,130)" to="(340,130)"/>
    <wire from="(350,110)" to="(380,110)"/>
    <wire from="(400,80)" to="(420,80)"/>
    <wire from="(400,90)" to="(410,90)"/>
    <wire from="(100,110)" to="(180,110)"/>
    <wire from="(350,100)" to="(360,100)"/>
    <wire from="(40,100)" to="(180,100)"/>
    <wire from="(410,90)" to="(410,140)"/>
    <wire from="(210,100)" to="(220,100)"/>
    <wire from="(260,80)" to="(270,80)"/>
    <wire from="(260,90)" to="(270,90)"/>
    <wire from="(330,120)" to="(330,180)"/>
    <wire from="(190,120)" to="(190,180)"/>
    <wire from="(390,110)" to="(460,110)"/>
    <comp lib="0" loc="(100,180)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DOut"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(210,100)" name="8-bit register">
      <a name="label" val="Acc"/>
    </comp>
    <comp loc="(260,80)" name="8-bit register">
      <a name="label" val="Latch"/>
    </comp>
    <comp loc="(400,80)" name="1-bit register">
      <a name="label" val="Cout"/>
    </comp>
    <comp lib="0" loc="(460,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CIn"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(460,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Execute"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(460,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(220,80)" name="NOT Gate">
      <a name="facing" val="south"/>
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(460,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="AccIn"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(360,80)" name="NOT Gate">
      <a name="facing" val="south"/>
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(190,180)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="AccOut"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(330,180)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="COut"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(40,180)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="SelAcc"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(350,100)" name="1-bit register">
      <a name="label" val="Cin"/>
    </comp>
  </circuit>
  <circuit name="Instr Decode">
    <a name="circuit" val="Instr Decode"/>
    <a name="clabel" val="Instr Dec"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <path d="M81,51 Q85,61 89,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="40" stroke="#000000" stroke-width="2" width="70" x="50" y="50"/>
      <circ-port height="8" pin="120,70" width="8" x="46" y="56"/>
      <circ-port height="10" pin="70,370" width="10" x="45" y="65"/>
      <circ-port height="8" pin="520,130" width="8" x="116" y="56"/>
      <circ-port height="8" pin="520,390" width="8" x="116" y="66"/>
      <circ-port height="8" pin="520,410" width="8" x="116" y="76"/>
      <circ-port height="8" pin="330,60" width="8" x="56" y="46"/>
      <circ-port height="10" pin="390,60" width="10" x="75" y="45"/>
      <circ-port height="10" pin="480,60" width="10" x="85" y="45"/>
      <circ-port height="10" pin="100,520" width="10" x="55" y="85"/>
      <circ-port height="10" pin="140,520" width="10" x="65" y="85"/>
      <circ-port height="10" pin="180,520" width="10" x="75" y="85"/>
      <circ-port height="10" pin="220,520" width="10" x="85" y="85"/>
      <circ-port height="10" pin="310,520" width="10" x="95" y="85"/>
      <circ-port height="10" pin="360,520" width="10" x="105" y="85"/>
      <circ-anchor facing="east" height="6" width="6" x="117" y="57"/>
    </appear>
    <wire from="(300,410)" to="(300,480)"/>
    <wire from="(90,280)" to="(90,480)"/>
    <wire from="(60,120)" to="(60,130)"/>
    <wire from="(230,410)" to="(280,410)"/>
    <wire from="(90,280)" to="(270,280)"/>
    <wire from="(310,510)" to="(310,520)"/>
    <wire from="(280,210)" to="(280,290)"/>
    <wire from="(280,380)" to="(280,410)"/>
    <wire from="(260,190)" to="(300,190)"/>
    <wire from="(310,380)" to="(350,380)"/>
    <wire from="(390,60)" to="(390,150)"/>
    <wire from="(260,160)" to="(480,160)"/>
    <wire from="(290,200)" to="(290,300)"/>
    <wire from="(260,200)" to="(290,200)"/>
    <wire from="(280,410)" to="(300,410)"/>
    <wire from="(130,290)" to="(280,290)"/>
    <wire from="(260,210)" to="(280,210)"/>
    <wire from="(210,310)" to="(210,480)"/>
    <wire from="(130,70)" to="(130,110)"/>
    <wire from="(50,120)" to="(50,230)"/>
    <wire from="(370,390)" to="(520,390)"/>
    <wire from="(260,220)" to="(270,220)"/>
    <wire from="(230,230)" to="(240,230)"/>
    <wire from="(330,390)" to="(330,440)"/>
    <wire from="(370,390)" to="(370,440)"/>
    <wire from="(80,100)" to="(80,410)"/>
    <wire from="(130,290)" to="(130,480)"/>
    <wire from="(300,190)" to="(300,310)"/>
    <wire from="(150,410)" to="(150,480)"/>
    <wire from="(190,410)" to="(190,480)"/>
    <wire from="(230,410)" to="(230,480)"/>
    <wire from="(70,110)" to="(130,110)"/>
    <wire from="(110,410)" to="(110,480)"/>
    <wire from="(360,170)" to="(360,300)"/>
    <wire from="(180,510)" to="(180,520)"/>
    <wire from="(140,510)" to="(140,520)"/>
    <wire from="(220,510)" to="(220,520)"/>
    <wire from="(170,300)" to="(290,300)"/>
    <wire from="(100,510)" to="(100,520)"/>
    <wire from="(320,470)" to="(320,480)"/>
    <wire from="(350,360)" to="(350,380)"/>
    <wire from="(350,340)" to="(350,360)"/>
    <wire from="(50,230)" to="(90,230)"/>
    <wire from="(260,170)" to="(360,170)"/>
    <wire from="(110,410)" to="(150,410)"/>
    <wire from="(150,410)" to="(190,410)"/>
    <wire from="(190,410)" to="(230,410)"/>
    <wire from="(340,270)" to="(340,300)"/>
    <wire from="(330,390)" to="(370,390)"/>
    <wire from="(300,410)" to="(520,410)"/>
    <wire from="(70,370)" to="(230,370)"/>
    <wire from="(260,360)" to="(350,360)"/>
    <wire from="(260,180)" to="(350,180)"/>
    <wire from="(80,410)" to="(110,410)"/>
    <wire from="(480,60)" to="(480,160)"/>
    <wire from="(210,310)" to="(300,310)"/>
    <wire from="(330,60)" to="(330,240)"/>
    <wire from="(270,380)" to="(280,380)"/>
    <wire from="(60,130)" to="(520,130)"/>
    <wire from="(310,380)" to="(310,430)"/>
    <wire from="(170,300)" to="(170,480)"/>
    <wire from="(120,70)" to="(130,70)"/>
    <wire from="(360,470)" to="(360,520)"/>
    <wire from="(70,100)" to="(80,100)"/>
    <wire from="(270,220)" to="(270,280)"/>
    <wire from="(350,380)" to="(350,440)"/>
    <wire from="(350,180)" to="(350,240)"/>
    <wire from="(260,150)" to="(390,150)"/>
    <comp lib="1" loc="(320,470)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate0" val="true"/>
    </comp>
    <comp lib="1" loc="(220,510)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(70,370)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="SelAcc"/>
    </comp>
    <comp lib="0" loc="(310,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Rd"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(340,270)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(350,340)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(100,510)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(180,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(230,370)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(180,510)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(140,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="4" loc="(230,230)" name="ROM">
      <a name="dataWidth" val="24"/>
      <a name="contents">addr/data: 8 24
f0aa0 aaf00 f0000 f0ff0 f00a0 f0fa0 f0f00 f00f0
aa000 aaaa0 faa0 5aaa0 5aa00 5a0a0 a50a0 aa0
ccaa0 ccaa1 ccaa2 ccaa3 ccaa4 ccaa5 ccaa6 ccaa7
ccaa8 ccaa9 ccaaa ccaab ccaac ccaad ccaae ccaaf
1f0aa0 1f0aa1 1f0aa2 1f0aa3 1f0aa4 1f0aa5 1f0aa6 1f0aa7
1f0aa8 1f0aa9 1f0aaa 1f0aab 1f0aac 1f0aad 1f0aae 1f0aaf
2d8aa0 2d8aa1 2d8aa2 2d8aa3 2d8aa4 2d8aa5 2d8aa6 2d8aa7
2d8aa8 2d8aa9 2d8aaa 2d8aab 2d8aac 2d8aad 2d8aae 2d8aaf
e4aa0 e4aa1 e4aa2 e4aa3 e4aa4 e4aa5 e4aa6 e4aa7
e4aa8 e4aa9 e4aaa e4aab e4aac e4aad e4aae e4aaf
96e80 96e81 96e82 96e83 96e84 96e85 96e86 96e87
96e88 96e89 96e8a 96e8b 96e8c 96e8d 96e8e 96e8f
968e0 968e1 968e2 968e3 968e4 968e5 968e6 968e7
968e8 968e9 968ea 968eb 968ec 968ed 968ee 968ef
c0ea0 c0ea1 c0ea2 c0ea3 c0ea4 c0ea5 c0ea6 c0ea7
c0ea8 c0ea9 c0eaa c0eab c0eac c0ead c0eae c0eaf
fcfe0 fcfe1 fcfe2 fcfe3 fcfe4 fcfe5 fcfe6 fcfe7
fcfe8 fcfe9 fcfea fcfeb fcfec fcfed fcfee fcfef
3c960 3c961 3c962 3c963 3c964 3c965 3c966 3c967
3c968 3c969 3c96a 3c96b 3c96c 3c96d 3c96e 3c96f
</a>
    </comp>
    <comp lib="0" loc="(120,70)" name="Pin">
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Din"/>
    </comp>
    <comp lib="0" loc="(520,410)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Fetch"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(220,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(70,100)" name="8-bit register">
      <a name="label" val="Instr"/>
      <a name="labelloc" val="west"/>
    </comp>
    <comp lib="1" loc="(310,510)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(520,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(330,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CIn"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(100,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RS3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(360,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Wr"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(480,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CryCtrl"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(240,230)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="24"/>
      <a name="bit0" val="4"/>
      <a name="bit1" val="5"/>
      <a name="bit2" val="6"/>
      <a name="bit3" val="7"/>
      <a name="bit4" val="1"/>
      <a name="bit5" val="1"/>
      <a name="bit6" val="1"/>
      <a name="bit7" val="1"/>
      <a name="bit8" val="1"/>
      <a name="bit9" val="1"/>
      <a name="bit10" val="1"/>
      <a name="bit11" val="1"/>
      <a name="bit12" val="0"/>
      <a name="bit13" val="0"/>
      <a name="bit14" val="0"/>
      <a name="bit15" val="0"/>
      <a name="bit16" val="0"/>
      <a name="bit17" val="0"/>
      <a name="bit18" val="0"/>
      <a name="bit19" val="0"/>
      <a name="bit20" val="2"/>
      <a name="bit21" val="3"/>
      <a name="bit22" val="none"/>
      <a name="bit23" val="none"/>
    </comp>
    <comp lib="0" loc="(520,390)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Execute"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(360,470)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(390,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OutCtrl"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(140,510)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
  </circuit>
  <circuit name="Sequencer">
    <a name="circuit" val="Sequencer"/>
    <a name="clabel" val="Seq"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(180,120)" to="(180,250)"/>
    <wire from="(180,120)" to="(240,120)"/>
    <wire from="(200,30)" to="(260,30)"/>
    <wire from="(260,30)" to="(320,30)"/>
    <wire from="(240,120)" to="(300,120)"/>
    <wire from="(260,30)" to="(260,40)"/>
    <wire from="(230,100)" to="(230,110)"/>
    <wire from="(320,30)" to="(370,30)"/>
    <wire from="(290,100)" to="(290,110)"/>
    <wire from="(300,100)" to="(300,120)"/>
    <wire from="(70,250)" to="(180,250)"/>
    <wire from="(180,100)" to="(180,120)"/>
    <wire from="(240,100)" to="(240,120)"/>
    <wire from="(260,60)" to="(260,80)"/>
    <wire from="(200,90)" to="(200,110)"/>
    <wire from="(260,90)" to="(260,110)"/>
    <wire from="(120,210)" to="(160,210)"/>
    <wire from="(160,160)" to="(200,160)"/>
    <wire from="(170,140)" to="(270,140)"/>
    <wire from="(140,140)" to="(170,140)"/>
    <wire from="(130,160)" to="(160,160)"/>
    <wire from="(200,110)" to="(230,110)"/>
    <wire from="(260,110)" to="(290,110)"/>
    <wire from="(170,100)" to="(170,140)"/>
    <wire from="(70,200)" to="(90,200)"/>
    <wire from="(120,140)" to="(140,140)"/>
    <wire from="(70,150)" to="(90,150)"/>
    <wire from="(140,140)" to="(140,190)"/>
    <wire from="(160,160)" to="(160,210)"/>
    <wire from="(200,30)" to="(200,80)"/>
    <wire from="(200,110)" to="(200,160)"/>
    <wire from="(310,90)" to="(320,90)"/>
    <wire from="(310,150)" to="(320,150)"/>
    <wire from="(310,80)" to="(320,80)"/>
    <wire from="(130,190)" to="(140,190)"/>
    <wire from="(190,90)" to="(200,90)"/>
    <wire from="(190,80)" to="(200,80)"/>
    <wire from="(250,90)" to="(260,90)"/>
    <wire from="(250,80)" to="(260,80)"/>
    <wire from="(320,30)" to="(320,80)"/>
    <wire from="(320,90)" to="(320,150)"/>
    <wire from="(200,160)" to="(270,160)"/>
    <comp lib="0" loc="(70,150)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Execute"/>
    </comp>
    <comp lib="0" loc="(70,200)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Fetch"/>
    </comp>
    <comp loc="(190,80)" name="1-bit register"/>
    <comp lib="1" loc="(90,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(370,30)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Clock"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(70,250)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Reset"/>
    </comp>
    <comp lib="1" loc="(310,150)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(260,60)" name="NOT Gate">
      <a name="facing" val="south"/>
      <a name="size" val="20"/>
    </comp>
    <comp loc="(250,80)" name="1-bit register"/>
    <comp lib="1" loc="(90,200)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate0" val="true"/>
    </comp>
    <comp loc="(310,80)" name="1-bit register"/>
  </circuit>
  <circuit name="8-bit ALU">
    <a name="circuit" val="8-bit ALU"/>
    <a name="clabel" val="ALU"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <path d="M66,51 Q70,61 74,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="30" stroke="#000000" stroke-width="2" width="40" x="50" y="50"/>
      <circ-port height="8" pin="110,100" width="8" x="46" y="56"/>
      <circ-port height="8" pin="110,610" width="8" x="46" y="66"/>
      <circ-port height="10" pin="410,510" width="10" x="85" y="55"/>
      <circ-port height="8" pin="290,80" width="8" x="76" y="46"/>
      <circ-port height="8" pin="160,640" width="8" x="56" y="76"/>
      <circ-port height="8" pin="250,640" width="8" x="66" y="76"/>
      <circ-port height="10" pin="310,640" width="10" x="75" y="75"/>
      <circ-anchor facing="east" height="6" width="6" x="87" y="57"/>
    </appear>
    <wire from="(260,130)" to="(260,200)"/>
    <wire from="(260,410)" to="(260,480)"/>
    <wire from="(250,560)" to="(250,630)"/>
    <wire from="(250,280)" to="(250,350)"/>
    <wire from="(150,580)" to="(210,580)"/>
    <wire from="(330,570)" to="(380,570)"/>
    <wire from="(280,400)" to="(280,410)"/>
    <wire from="(290,290)" to="(290,300)"/>
    <wire from="(170,30)" to="(170,170)"/>
    <wire from="(290,570)" to="(290,580)"/>
    <wire from="(280,120)" to="(280,130)"/>
    <wire from="(310,630)" to="(310,640)"/>
    <wire from="(290,610)" to="(290,630)"/>
    <wire from="(290,330)" to="(290,350)"/>
    <wire from="(160,110)" to="(270,110)"/>
    <wire from="(300,260)" to="(300,290)"/>
    <wire from="(300,540)" to="(300,570)"/>
    <wire from="(150,560)" to="(190,560)"/>
    <wire from="(250,140)" to="(290,140)"/>
    <wire from="(250,420)" to="(290,420)"/>
    <wire from="(170,170)" to="(270,170)"/>
    <wire from="(260,410)" to="(280,410)"/>
    <wire from="(260,130)" to="(280,130)"/>
    <wire from="(360,240)" to="(360,540)"/>
    <wire from="(110,100)" to="(130,100)"/>
    <wire from="(150,540)" to="(170,540)"/>
    <wire from="(290,290)" to="(300,290)"/>
    <wire from="(290,570)" to="(300,570)"/>
    <wire from="(150,90)" to="(230,90)"/>
    <wire from="(370,530)" to="(380,530)"/>
    <wire from="(190,320)" to="(190,560)"/>
    <wire from="(320,520)" to="(320,580)"/>
    <wire from="(200,390)" to="(270,390)"/>
    <wire from="(220,80)" to="(220,520)"/>
    <wire from="(310,100)" to="(380,100)"/>
    <wire from="(260,340)" to="(260,410)"/>
    <wire from="(250,490)" to="(250,560)"/>
    <wire from="(250,210)" to="(250,280)"/>
    <wire from="(150,70)" to="(210,70)"/>
    <wire from="(210,450)" to="(270,450)"/>
    <wire from="(310,240)" to="(360,240)"/>
    <wire from="(180,40)" to="(180,240)"/>
    <wire from="(290,220)" to="(290,230)"/>
    <wire from="(290,500)" to="(290,510)"/>
    <wire from="(280,610)" to="(280,620)"/>
    <wire from="(280,330)" to="(280,340)"/>
    <wire from="(290,540)" to="(290,560)"/>
    <wire from="(290,260)" to="(290,280)"/>
    <wire from="(300,190)" to="(300,220)"/>
    <wire from="(300,470)" to="(300,500)"/>
    <wire from="(150,50)" to="(190,50)"/>
    <wire from="(250,350)" to="(290,350)"/>
    <wire from="(250,630)" to="(290,630)"/>
    <wire from="(340,560)" to="(380,560)"/>
    <wire from="(170,180)" to="(270,180)"/>
    <wire from="(180,240)" to="(270,240)"/>
    <wire from="(160,110)" to="(160,530)"/>
    <wire from="(310,380)" to="(340,380)"/>
    <wire from="(260,620)" to="(280,620)"/>
    <wire from="(260,340)" to="(280,340)"/>
    <wire from="(370,170)" to="(370,530)"/>
    <wire from="(150,30)" to="(170,30)"/>
    <wire from="(310,520)" to="(320,520)"/>
    <wire from="(290,220)" to="(300,220)"/>
    <wire from="(290,500)" to="(300,500)"/>
    <wire from="(300,630)" to="(310,630)"/>
    <wire from="(200,390)" to="(200,570)"/>
    <wire from="(230,90)" to="(230,590)"/>
    <wire from="(150,590)" to="(220,590)"/>
    <wire from="(330,450)" to="(330,570)"/>
    <wire from="(310,590)" to="(380,590)"/>
    <wire from="(260,550)" to="(260,620)"/>
    <wire from="(260,270)" to="(260,340)"/>
    <wire from="(250,420)" to="(250,490)"/>
    <wire from="(250,140)" to="(250,210)"/>
    <wire from="(190,50)" to="(190,310)"/>
    <wire from="(210,460)" to="(270,460)"/>
    <wire from="(150,570)" to="(200,570)"/>
    <wire from="(220,520)" to="(270,520)"/>
    <wire from="(280,260)" to="(280,270)"/>
    <wire from="(250,630)" to="(250,640)"/>
    <wire from="(290,430)" to="(290,440)"/>
    <wire from="(290,150)" to="(290,160)"/>
    <wire from="(280,540)" to="(280,550)"/>
    <wire from="(290,470)" to="(290,490)"/>
    <wire from="(290,190)" to="(290,210)"/>
    <wire from="(160,620)" to="(160,640)"/>
    <wire from="(300,120)" to="(300,150)"/>
    <wire from="(300,400)" to="(300,430)"/>
    <wire from="(250,280)" to="(290,280)"/>
    <wire from="(250,560)" to="(290,560)"/>
    <wire from="(160,620)" to="(260,620)"/>
    <wire from="(150,550)" to="(180,550)"/>
    <wire from="(380,100)" to="(380,520)"/>
    <wire from="(180,250)" to="(270,250)"/>
    <wire from="(350,550)" to="(380,550)"/>
    <wire from="(260,550)" to="(280,550)"/>
    <wire from="(260,270)" to="(280,270)"/>
    <wire from="(170,180)" to="(170,540)"/>
    <wire from="(340,380)" to="(340,560)"/>
    <wire from="(290,430)" to="(300,430)"/>
    <wire from="(290,150)" to="(300,150)"/>
    <wire from="(190,310)" to="(270,310)"/>
    <wire from="(150,530)" to="(160,530)"/>
    <wire from="(150,80)" to="(220,80)"/>
    <wire from="(210,460)" to="(210,580)"/>
    <wire from="(310,170)" to="(370,170)"/>
    <wire from="(320,580)" to="(380,580)"/>
    <wire from="(260,200)" to="(260,270)"/>
    <wire from="(260,480)" to="(260,550)"/>
    <wire from="(200,60)" to="(200,380)"/>
    <wire from="(250,350)" to="(250,420)"/>
    <wire from="(150,600)" to="(270,600)"/>
    <wire from="(150,60)" to="(200,60)"/>
    <wire from="(220,530)" to="(270,530)"/>
    <wire from="(290,360)" to="(290,370)"/>
    <wire from="(290,80)" to="(290,90)"/>
    <wire from="(280,190)" to="(280,200)"/>
    <wire from="(280,470)" to="(280,480)"/>
    <wire from="(290,120)" to="(290,140)"/>
    <wire from="(290,400)" to="(290,420)"/>
    <wire from="(300,610)" to="(300,630)"/>
    <wire from="(160,100)" to="(270,100)"/>
    <wire from="(160,20)" to="(160,100)"/>
    <wire from="(300,330)" to="(300,360)"/>
    <wire from="(250,210)" to="(290,210)"/>
    <wire from="(230,590)" to="(270,590)"/>
    <wire from="(250,490)" to="(290,490)"/>
    <wire from="(310,310)" to="(350,310)"/>
    <wire from="(150,40)" to="(180,40)"/>
    <wire from="(260,480)" to="(280,480)"/>
    <wire from="(260,200)" to="(280,200)"/>
    <wire from="(310,450)" to="(330,450)"/>
    <wire from="(360,540)" to="(380,540)"/>
    <wire from="(110,610)" to="(130,610)"/>
    <wire from="(180,250)" to="(180,550)"/>
    <wire from="(400,510)" to="(410,510)"/>
    <wire from="(290,360)" to="(300,360)"/>
    <wire from="(190,320)" to="(270,320)"/>
    <wire from="(150,20)" to="(160,20)"/>
    <wire from="(350,310)" to="(350,550)"/>
    <wire from="(200,380)" to="(270,380)"/>
    <wire from="(210,70)" to="(210,450)"/>
    <wire from="(220,530)" to="(220,590)"/>
    <comp loc="(310,170)" name="1-bit ALU"/>
    <comp lib="0" loc="(130,610)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(310,520)" name="1-bit ALU"/>
    <comp lib="0" loc="(160,640)" name="Pin">
      <a name="facing" val="north"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OutCtrl"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(290,80)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CIn"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(310,380)" name="1-bit ALU"/>
    <comp lib="0" loc="(310,640)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="COut"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(310,100)" name="1-bit ALU"/>
    <comp lib="0" loc="(130,100)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(410,510)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(310,590)" name="1-bit ALU"/>
    <comp loc="(310,240)" name="1-bit ALU"/>
    <comp lib="0" loc="(400,510)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(110,610)" name="Pin">
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(110,100)" name="Pin">
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp loc="(310,450)" name="1-bit ALU"/>
    <comp lib="0" loc="(250,640)" name="Pin">
      <a name="facing" val="north"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CryCtrl"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(310,310)" name="1-bit ALU"/>
  </circuit>
  <circuit name="1-bit ALU">
    <a name="circuit" val="1-bit ALU"/>
    <a name="clabel" val="ALU"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(140,110)" to="(170,110)"/>
    <wire from="(140,210)" to="(170,210)"/>
    <wire from="(140,40)" to="(140,110)"/>
    <wire from="(80,140)" to="(80,240)"/>
    <wire from="(200,100)" to="(290,100)"/>
    <wire from="(140,110)" to="(140,210)"/>
    <wire from="(160,90)" to="(160,190)"/>
    <wire from="(150,100)" to="(150,200)"/>
    <wire from="(250,200)" to="(250,240)"/>
    <wire from="(200,200)" to="(250,200)"/>
    <wire from="(150,200)" to="(170,200)"/>
    <wire from="(150,100)" to="(170,100)"/>
    <wire from="(50,70)" to="(160,70)"/>
    <wire from="(160,190)" to="(170,190)"/>
    <wire from="(160,90)" to="(170,90)"/>
    <wire from="(180,120)" to="(180,140)"/>
    <wire from="(160,70)" to="(160,90)"/>
    <wire from="(180,220)" to="(180,240)"/>
    <wire from="(50,100)" to="(150,100)"/>
    <wire from="(80,140)" to="(180,140)"/>
    <comp loc="(200,200)" name="1-bit AnyLogic"/>
    <comp lib="0" loc="(80,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OutCtrl"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(250,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="COut"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(50,70)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp loc="(200,100)" name="1-bit AnyLogic"/>
    <comp lib="0" loc="(50,100)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(140,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CIn"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(290,100)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(180,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="CryCtrl"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
  <circuit name="1-bit AnyLogic">
    <a name="circuit" val="1-bit AnyLogic"/>
    <a name="clabel" val="Any"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(100,490)" to="(160,490)"/>
    <wire from="(150,380)" to="(210,380)"/>
    <wire from="(130,260)" to="(130,460)"/>
    <wire from="(290,90)" to="(340,90)"/>
    <wire from="(160,440)" to="(210,440)"/>
    <wire from="(140,320)" to="(140,470)"/>
    <wire from="(100,470)" to="(140,470)"/>
    <wire from="(300,110)" to="(340,110)"/>
    <wire from="(170,310)" to="(200,310)"/>
    <wire from="(170,70)" to="(200,70)"/>
    <wire from="(170,190)" to="(200,190)"/>
    <wire from="(170,430)" to="(200,430)"/>
    <wire from="(260,240)" to="(290,240)"/>
    <wire from="(150,380)" to="(150,480)"/>
    <wire from="(390,100)" to="(410,100)"/>
    <wire from="(100,450)" to="(120,450)"/>
    <wire from="(180,50)" to="(200,50)"/>
    <wire from="(180,290)" to="(200,290)"/>
    <wire from="(190,340)" to="(210,340)"/>
    <wire from="(190,460)" to="(210,460)"/>
    <wire from="(160,440)" to="(160,490)"/>
    <wire from="(310,120)" to="(310,360)"/>
    <wire from="(270,70)" to="(270,120)"/>
    <wire from="(170,250)" to="(170,310)"/>
    <wire from="(170,370)" to="(170,430)"/>
    <wire from="(170,130)" to="(170,190)"/>
    <wire from="(60,40)" to="(190,40)"/>
    <wire from="(260,420)" to="(320,420)"/>
    <wire from="(280,80)" to="(340,80)"/>
    <wire from="(100,500)" to="(210,500)"/>
    <wire from="(180,170)" to="(210,170)"/>
    <wire from="(180,410)" to="(210,410)"/>
    <wire from="(280,80)" to="(280,180)"/>
    <wire from="(320,130)" to="(320,420)"/>
    <wire from="(260,180)" to="(280,180)"/>
    <wire from="(60,100)" to="(80,100)"/>
    <wire from="(330,140)" to="(340,140)"/>
    <wire from="(190,40)" to="(200,40)"/>
    <wire from="(190,160)" to="(200,160)"/>
    <wire from="(60,70)" to="(70,70)"/>
    <wire from="(180,350)" to="(180,410)"/>
    <wire from="(190,40)" to="(190,100)"/>
    <wire from="(190,160)" to="(190,220)"/>
    <wire from="(270,70)" to="(340,70)"/>
    <wire from="(180,230)" to="(180,290)"/>
    <wire from="(180,110)" to="(180,170)"/>
    <wire from="(190,280)" to="(190,340)"/>
    <wire from="(190,400)" to="(190,460)"/>
    <wire from="(260,360)" to="(310,360)"/>
    <wire from="(100,480)" to="(150,480)"/>
    <wire from="(330,140)" to="(330,480)"/>
    <wire from="(290,90)" to="(290,240)"/>
    <wire from="(70,50)" to="(70,70)"/>
    <wire from="(100,460)" to="(130,460)"/>
    <wire from="(80,70)" to="(170,70)"/>
    <wire from="(320,130)" to="(340,130)"/>
    <wire from="(180,110)" to="(200,110)"/>
    <wire from="(180,350)" to="(200,350)"/>
    <wire from="(190,280)" to="(210,280)"/>
    <wire from="(190,400)" to="(210,400)"/>
    <wire from="(260,60)" to="(340,60)"/>
    <wire from="(260,120)" to="(270,120)"/>
    <wire from="(100,440)" to="(110,440)"/>
    <wire from="(170,430)" to="(170,490)"/>
    <wire from="(170,310)" to="(170,370)"/>
    <wire from="(170,190)" to="(170,250)"/>
    <wire from="(170,70)" to="(170,130)"/>
    <wire from="(100,80)" to="(210,80)"/>
    <wire from="(70,50)" to="(180,50)"/>
    <wire from="(170,130)" to="(210,130)"/>
    <wire from="(170,250)" to="(210,250)"/>
    <wire from="(170,370)" to="(210,370)"/>
    <wire from="(170,490)" to="(210,490)"/>
    <wire from="(260,300)" to="(300,300)"/>
    <wire from="(110,140)" to="(210,140)"/>
    <wire from="(100,80)" to="(100,430)"/>
    <wire from="(80,70)" to="(80,100)"/>
    <wire from="(180,230)" to="(210,230)"/>
    <wire from="(180,470)" to="(210,470)"/>
    <wire from="(310,120)" to="(340,120)"/>
    <wire from="(120,200)" to="(210,200)"/>
    <wire from="(80,510)" to="(80,550)"/>
    <wire from="(110,140)" to="(110,440)"/>
    <wire from="(130,260)" to="(210,260)"/>
    <wire from="(190,100)" to="(200,100)"/>
    <wire from="(190,220)" to="(200,220)"/>
    <wire from="(140,320)" to="(210,320)"/>
    <wire from="(300,110)" to="(300,300)"/>
    <wire from="(120,200)" to="(120,450)"/>
    <wire from="(180,290)" to="(180,350)"/>
    <wire from="(260,480)" to="(330,480)"/>
    <wire from="(180,170)" to="(180,230)"/>
    <wire from="(180,50)" to="(180,110)"/>
    <wire from="(180,410)" to="(180,470)"/>
    <wire from="(190,220)" to="(190,280)"/>
    <wire from="(190,100)" to="(190,160)"/>
    <wire from="(190,340)" to="(190,400)"/>
    <comp lib="0" loc="(60,100)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="C"/>
    </comp>
    <comp lib="1" loc="(390,100)" name="OR Gate">
      <a name="inputs" val="8"/>
    </comp>
    <comp lib="1" loc="(260,60)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="000"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="0" loc="(80,550)" name="Pin">
      <a name="facing" val="north"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OutCtrl"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(260,360)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="101"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(60,70)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(260,240)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="011"/>
      <a name="negate0" val="true"/>
    </comp>
    <comp lib="1" loc="(260,300)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="100"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="1" loc="(260,480)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="111"/>
    </comp>
    <comp lib="0" loc="(60,40)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="1" loc="(260,420)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="110"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="0" loc="(80,510)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="1" loc="(260,180)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="010"/>
      <a name="negate0" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="0" loc="(410,100)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,120)" name="AND Gate">
      <a name="inputs" val="4"/>
      <a name="label" val="001"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
    </comp>
  </circuit>
  <circuit name="8-bit register">
    <a name="circuit" val="8-bit register"/>
    <a name="clabel" val="Reg"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(200,240)" to="(200,500)"/>
    <wire from="(250,130)" to="(250,140)"/>
    <wire from="(250,330)" to="(250,340)"/>
    <wire from="(350,150)" to="(400,150)"/>
    <wire from="(200,240)" to="(250,240)"/>
    <wire from="(190,270)" to="(240,270)"/>
    <wire from="(260,180)" to="(260,190)"/>
    <wire from="(260,380)" to="(260,390)"/>
    <wire from="(270,420)" to="(380,420)"/>
    <wire from="(280,80)" to="(280,110)"/>
    <wire from="(150,190)" to="(150,470)"/>
    <wire from="(260,190)" to="(300,190)"/>
    <wire from="(260,390)" to="(300,390)"/>
    <wire from="(390,190)" to="(390,470)"/>
    <wire from="(420,110)" to="(460,110)"/>
    <wire from="(180,160)" to="(180,320)"/>
    <wire from="(270,320)" to="(360,320)"/>
    <wire from="(150,120)" to="(240,120)"/>
    <wire from="(210,130)" to="(210,170)"/>
    <wire from="(330,130)" to="(330,170)"/>
    <wire from="(390,190)" to="(400,190)"/>
    <wire from="(230,110)" to="(230,160)"/>
    <wire from="(230,310)" to="(230,360)"/>
    <wire from="(270,310)" to="(280,310)"/>
    <wire from="(170,390)" to="(250,390)"/>
    <wire from="(160,420)" to="(240,420)"/>
    <wire from="(270,110)" to="(280,110)"/>
    <wire from="(230,110)" to="(240,110)"/>
    <wire from="(230,310)" to="(240,310)"/>
    <wire from="(280,160)" to="(280,210)"/>
    <wire from="(280,360)" to="(280,410)"/>
    <wire from="(300,140)" to="(300,190)"/>
    <wire from="(300,340)" to="(300,390)"/>
    <wire from="(120,200)" to="(130,200)"/>
    <wire from="(160,440)" to="(160,500)"/>
    <wire from="(270,220)" to="(340,220)"/>
    <wire from="(340,140)" to="(400,140)"/>
    <wire from="(250,180)" to="(250,190)"/>
    <wire from="(250,380)" to="(250,390)"/>
    <wire from="(260,230)" to="(260,240)"/>
    <wire from="(260,430)" to="(260,440)"/>
    <wire from="(190,290)" to="(190,500)"/>
    <wire from="(340,140)" to="(340,220)"/>
    <wire from="(230,520)" to="(230,540)"/>
    <wire from="(200,220)" to="(240,220)"/>
    <wire from="(210,190)" to="(250,190)"/>
    <wire from="(260,240)" to="(300,240)"/>
    <wire from="(260,440)" to="(300,440)"/>
    <wire from="(230,80)" to="(230,110)"/>
    <wire from="(380,180)" to="(400,180)"/>
    <wire from="(220,140)" to="(220,500)"/>
    <wire from="(230,160)" to="(230,210)"/>
    <wire from="(230,360)" to="(230,410)"/>
    <wire from="(270,360)" to="(280,360)"/>
    <wire from="(160,180)" to="(160,420)"/>
    <wire from="(270,160)" to="(280,160)"/>
    <wire from="(230,160)" to="(240,160)"/>
    <wire from="(230,360)" to="(240,360)"/>
    <wire from="(280,210)" to="(280,260)"/>
    <wire from="(280,410)" to="(280,460)"/>
    <wire from="(300,190)" to="(300,240)"/>
    <wire from="(300,390)" to="(300,440)"/>
    <wire from="(170,370)" to="(240,370)"/>
    <wire from="(180,340)" to="(250,340)"/>
    <wire from="(190,150)" to="(190,270)"/>
    <wire from="(350,150)" to="(350,270)"/>
    <wire from="(330,130)" to="(400,130)"/>
    <wire from="(150,490)" to="(150,500)"/>
    <wire from="(250,230)" to="(250,240)"/>
    <wire from="(250,430)" to="(250,440)"/>
    <wire from="(270,470)" to="(390,470)"/>
    <wire from="(260,280)" to="(260,290)"/>
    <wire from="(260,480)" to="(260,490)"/>
    <wire from="(270,370)" to="(370,370)"/>
    <wire from="(260,290)" to="(300,290)"/>
    <wire from="(260,490)" to="(300,490)"/>
    <wire from="(150,490)" to="(250,490)"/>
    <wire from="(210,170)" to="(240,170)"/>
    <wire from="(220,140)" to="(250,140)"/>
    <wire from="(180,340)" to="(180,500)"/>
    <wire from="(360,160)" to="(360,320)"/>
    <wire from="(370,170)" to="(400,170)"/>
    <wire from="(230,210)" to="(230,260)"/>
    <wire from="(230,410)" to="(230,460)"/>
    <wire from="(270,210)" to="(280,210)"/>
    <wire from="(270,410)" to="(280,410)"/>
    <wire from="(270,270)" to="(350,270)"/>
    <wire from="(230,210)" to="(240,210)"/>
    <wire from="(230,410)" to="(240,410)"/>
    <wire from="(210,190)" to="(210,500)"/>
    <wire from="(280,260)" to="(280,310)"/>
    <wire from="(300,240)" to="(300,290)"/>
    <wire from="(300,440)" to="(300,490)"/>
    <wire from="(270,170)" to="(330,170)"/>
    <wire from="(150,130)" to="(210,130)"/>
    <wire from="(180,320)" to="(240,320)"/>
    <wire from="(190,290)" to="(250,290)"/>
    <wire from="(280,80)" to="(460,80)"/>
    <wire from="(260,130)" to="(260,140)"/>
    <wire from="(250,280)" to="(250,290)"/>
    <wire from="(170,170)" to="(170,370)"/>
    <wire from="(150,140)" to="(200,140)"/>
    <wire from="(370,170)" to="(370,370)"/>
    <wire from="(260,330)" to="(260,340)"/>
    <wire from="(250,480)" to="(250,490)"/>
    <wire from="(200,140)" to="(200,220)"/>
    <wire from="(150,150)" to="(190,150)"/>
    <wire from="(260,140)" to="(300,140)"/>
    <wire from="(260,340)" to="(300,340)"/>
    <wire from="(360,160)" to="(400,160)"/>
    <wire from="(130,80)" to="(230,80)"/>
    <wire from="(150,160)" to="(180,160)"/>
    <wire from="(160,440)" to="(250,440)"/>
    <wire from="(150,470)" to="(240,470)"/>
    <wire from="(170,390)" to="(170,500)"/>
    <wire from="(150,170)" to="(170,170)"/>
    <wire from="(230,260)" to="(230,310)"/>
    <wire from="(270,260)" to="(280,260)"/>
    <wire from="(270,460)" to="(280,460)"/>
    <wire from="(150,180)" to="(160,180)"/>
    <wire from="(230,260)" to="(240,260)"/>
    <wire from="(230,460)" to="(240,460)"/>
    <wire from="(380,180)" to="(380,420)"/>
    <wire from="(280,110)" to="(280,160)"/>
    <wire from="(280,310)" to="(280,360)"/>
    <wire from="(300,490)" to="(300,540)"/>
    <wire from="(300,290)" to="(300,340)"/>
    <wire from="(270,120)" to="(400,120)"/>
    <comp loc="(270,460)" name="1-bit register"/>
    <comp lib="0" loc="(460,80)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Write"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(270,160)" name="1-bit register"/>
    <comp loc="(270,210)" name="1-bit register"/>
    <comp lib="0" loc="(460,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DIn"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(300,540)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(130,80)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Read"/>
    </comp>
    <comp loc="(270,410)" name="1-bit register"/>
    <comp lib="0" loc="(230,540)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="Peek"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(270,110)" name="1-bit register"/>
    <comp lib="0" loc="(120,200)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DOut"/>
    </comp>
    <comp lib="0" loc="(130,200)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(230,520)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(270,260)" name="1-bit register"/>
    <comp lib="0" loc="(420,110)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(270,310)" name="1-bit register"/>
    <comp loc="(270,360)" name="1-bit register"/>
  </circuit>
  <circuit name="1-bit register">
    <a name="circuit" val="1-bit register"/>
    <a name="clabel" val="Reg"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(400,70)" to="(450,70)"/>
    <wire from="(210,50)" to="(210,70)"/>
    <wire from="(120,110)" to="(160,110)"/>
    <wire from="(160,110)" to="(200,110)"/>
    <wire from="(410,170)" to="(450,170)"/>
    <wire from="(450,70)" to="(490,70)"/>
    <wire from="(420,30)" to="(420,130)"/>
    <wire from="(450,70)" to="(450,170)"/>
    <wire from="(80,40)" to="(110,40)"/>
    <wire from="(270,130)" to="(300,130)"/>
    <wire from="(270,170)" to="(300,170)"/>
    <wire from="(160,110)" to="(160,210)"/>
    <wire from="(280,90)" to="(300,90)"/>
    <wire from="(400,130)" to="(420,130)"/>
    <wire from="(400,30)" to="(420,30)"/>
    <wire from="(200,110)" to="(200,150)"/>
    <wire from="(300,90)" to="(300,130)"/>
    <wire from="(300,170)" to="(300,210)"/>
    <wire from="(80,110)" to="(100,110)"/>
    <wire from="(200,110)" to="(220,110)"/>
    <wire from="(270,150)" to="(350,150)"/>
    <wire from="(210,70)" to="(220,70)"/>
    <wire from="(200,150)" to="(210,150)"/>
    <wire from="(210,50)" to="(350,50)"/>
    <wire from="(420,30)" to="(490,30)"/>
    <wire from="(110,40)" to="(110,100)"/>
    <comp lib="0" loc="(80,110)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="DOut"/>
    </comp>
    <comp lib="1" loc="(350,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(100,110)" name="Controlled Buffer">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="1" loc="(350,50)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(160,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Peek"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(80,40)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Read"/>
    </comp>
    <comp lib="0" loc="(300,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(210,150)" name="NOR Gate">
      <a name="facing" val="west"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(280,90)" name="NOR Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(490,70)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DIn"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,30)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Write"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="8-bit Mux">
    <a name="circuit" val="8-bit Mux"/>
    <a name="clabel" val="Mux"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(150,140)" to="(470,140)"/>
    <wire from="(150,140)" to="(150,210)"/>
    <wire from="(520,60)" to="(520,190)"/>
    <wire from="(90,240)" to="(90,310)"/>
    <wire from="(340,80)" to="(340,210)"/>
    <wire from="(120,100)" to="(240,100)"/>
    <wire from="(390,70)" to="(390,210)"/>
    <wire from="(320,260)" to="(370,260)"/>
    <wire from="(140,300)" to="(260,300)"/>
    <wire from="(220,260)" to="(270,260)"/>
    <wire from="(320,300)" to="(440,300)"/>
    <wire from="(120,260)" to="(170,260)"/>
    <wire from="(440,60)" to="(440,210)"/>
    <wire from="(100,130)" to="(100,210)"/>
    <wire from="(150,70)" to="(390,70)"/>
    <wire from="(140,60)" to="(140,80)"/>
    <wire from="(470,60)" to="(470,140)"/>
    <wire from="(40,260)" to="(70,260)"/>
    <wire from="(490,60)" to="(490,160)"/>
    <wire from="(350,180)" to="(510,180)"/>
    <wire from="(120,220)" to="(120,260)"/>
    <wire from="(120,60)" to="(120,100)"/>
    <wire from="(290,240)" to="(290,350)"/>
    <wire from="(250,310)" to="(250,350)"/>
    <wire from="(220,220)" to="(220,260)"/>
    <wire from="(240,240)" to="(240,280)"/>
    <wire from="(200,150)" to="(480,150)"/>
    <wire from="(320,220)" to="(320,260)"/>
    <wire from="(340,240)" to="(340,280)"/>
    <wire from="(420,220)" to="(420,260)"/>
    <wire from="(420,220)" to="(430,220)"/>
    <wire from="(110,110)" to="(190,110)"/>
    <wire from="(320,220)" to="(330,220)"/>
    <wire from="(190,290)" to="(270,290)"/>
    <wire from="(310,290)" to="(390,290)"/>
    <wire from="(220,220)" to="(230,220)"/>
    <wire from="(260,300)" to="(260,350)"/>
    <wire from="(320,300)" to="(320,350)"/>
    <wire from="(120,220)" to="(130,220)"/>
    <wire from="(270,290)" to="(270,350)"/>
    <wire from="(310,290)" to="(310,350)"/>
    <wire from="(440,240)" to="(440,300)"/>
    <wire from="(140,80)" to="(340,80)"/>
    <wire from="(100,60)" to="(100,120)"/>
    <wire from="(140,240)" to="(140,300)"/>
    <wire from="(510,60)" to="(510,180)"/>
    <wire from="(460,60)" to="(460,130)"/>
    <wire from="(280,280)" to="(280,350)"/>
    <wire from="(300,280)" to="(300,350)"/>
    <wire from="(530,60)" to="(530,200)"/>
    <wire from="(150,60)" to="(150,70)"/>
    <wire from="(270,260)" to="(320,260)"/>
    <wire from="(370,260)" to="(420,260)"/>
    <wire from="(170,260)" to="(220,260)"/>
    <wire from="(450,200)" to="(450,210)"/>
    <wire from="(400,190)" to="(520,190)"/>
    <wire from="(70,260)" to="(120,260)"/>
    <wire from="(400,190)" to="(400,210)"/>
    <wire from="(250,160)" to="(490,160)"/>
    <wire from="(90,60)" to="(90,210)"/>
    <wire from="(140,120)" to="(140,210)"/>
    <wire from="(100,120)" to="(140,120)"/>
    <wire from="(100,130)" to="(460,130)"/>
    <wire from="(350,180)" to="(350,210)"/>
    <wire from="(240,280)" to="(280,280)"/>
    <wire from="(300,280)" to="(340,280)"/>
    <wire from="(480,60)" to="(480,150)"/>
    <wire from="(130,60)" to="(130,90)"/>
    <wire from="(90,310)" to="(250,310)"/>
    <wire from="(130,90)" to="(290,90)"/>
    <wire from="(190,110)" to="(190,210)"/>
    <wire from="(500,60)" to="(500,170)"/>
    <wire from="(70,220)" to="(70,260)"/>
    <wire from="(170,220)" to="(170,260)"/>
    <wire from="(160,60)" to="(440,60)"/>
    <wire from="(270,220)" to="(270,260)"/>
    <wire from="(300,170)" to="(300,210)"/>
    <wire from="(370,220)" to="(370,260)"/>
    <wire from="(240,100)" to="(240,210)"/>
    <wire from="(190,240)" to="(190,290)"/>
    <wire from="(250,160)" to="(250,210)"/>
    <wire from="(270,220)" to="(280,220)"/>
    <wire from="(370,220)" to="(380,220)"/>
    <wire from="(110,60)" to="(110,110)"/>
    <wire from="(170,220)" to="(180,220)"/>
    <wire from="(390,240)" to="(390,290)"/>
    <wire from="(450,200)" to="(530,200)"/>
    <wire from="(70,220)" to="(80,220)"/>
    <wire from="(290,90)" to="(290,210)"/>
    <wire from="(300,170)" to="(500,170)"/>
    <wire from="(200,150)" to="(200,210)"/>
    <comp lib="0" loc="(330,370)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(190,210)" name="1-bit Mux"/>
    <comp lib="0" loc="(80,40)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(330,370)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(40,260)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Sel"/>
    </comp>
    <comp loc="(340,210)" name="1-bit Mux"/>
    <comp loc="(90,210)" name="1-bit Mux"/>
    <comp loc="(140,210)" name="1-bit Mux"/>
    <comp loc="(390,210)" name="1-bit Mux"/>
    <comp lib="0" loc="(80,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="False"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(450,40)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(290,210)" name="1-bit Mux"/>
    <comp loc="(240,210)" name="1-bit Mux"/>
    <comp loc="(440,210)" name="1-bit Mux"/>
    <comp lib="0" loc="(450,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="True"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="1-bit Mux">
    <a name="circuit" val="1-bit Mux"/>
    <a name="clabel" val="Mux"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(160,150)" to="(160,160)"/>
    <wire from="(180,140)" to="(180,150)"/>
    <wire from="(120,50)" to="(120,90)"/>
    <wire from="(200,50)" to="(200,90)"/>
    <wire from="(120,150)" to="(120,160)"/>
    <wire from="(80,70)" to="(80,80)"/>
    <wire from="(100,140)" to="(100,150)"/>
    <wire from="(60,70)" to="(80,70)"/>
    <wire from="(100,150)" to="(120,150)"/>
    <wire from="(160,150)" to="(180,150)"/>
    <wire from="(80,70)" to="(160,70)"/>
    <wire from="(160,70)" to="(160,90)"/>
    <wire from="(140,210)" to="(140,230)"/>
    <comp lib="0" loc="(60,70)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Sel"/>
    </comp>
    <comp lib="1" loc="(140,210)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(200,50)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="True"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(100,140)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="inputs" val="2"/>
      <a name="negate0" val="true"/>
    </comp>
    <comp lib="0" loc="(140,230)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(180,140)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(120,50)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="False"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="16-bit SpecialReg">
    <a name="circuit" val="16-bit SpecialReg"/>
    <a name="clabel" val="--wr rd++"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(470,780)" to="(720,780)"/>
    <wire from="(720,440)" to="(720,450)"/>
    <wire from="(380,900)" to="(430,900)"/>
    <wire from="(440,440)" to="(440,450)"/>
    <wire from="(390,830)" to="(390,840)"/>
    <wire from="(510,110)" to="(510,130)"/>
    <wire from="(780,260)" to="(780,290)"/>
    <wire from="(410,680)" to="(410,760)"/>
    <wire from="(500,260)" to="(500,290)"/>
    <wire from="(360,480)" to="(460,480)"/>
    <wire from="(690,680)" to="(690,760)"/>
    <wire from="(170,750)" to="(200,750)"/>
    <wire from="(730,730)" to="(730,770)"/>
    <wire from="(580,90)" to="(600,90)"/>
    <wire from="(780,290)" to="(800,290)"/>
    <wire from="(500,290)" to="(520,290)"/>
    <wire from="(440,450)" to="(720,450)"/>
    <wire from="(190,270)" to="(200,270)"/>
    <wire from="(190,350)" to="(200,350)"/>
    <wire from="(740,420)" to="(740,480)"/>
    <wire from="(610,50)" to="(610,100)"/>
    <wire from="(120,270)" to="(190,270)"/>
    <wire from="(840,760)" to="(850,760)"/>
    <wire from="(460,420)" to="(460,480)"/>
    <wire from="(760,340)" to="(840,340)"/>
    <wire from="(760,330)" to="(760,340)"/>
    <wire from="(720,810)" to="(720,820)"/>
    <wire from="(540,250)" to="(850,250)"/>
    <wire from="(690,760)" to="(810,760)"/>
    <wire from="(600,90)" to="(600,100)"/>
    <wire from="(440,70)" to="(440,200)"/>
    <wire from="(670,270)" to="(670,860)"/>
    <wire from="(510,270)" to="(510,860)"/>
    <wire from="(150,200)" to="(200,200)"/>
    <wire from="(420,830)" to="(420,840)"/>
    <wire from="(340,720)" to="(340,920)"/>
    <wire from="(440,810)" to="(440,820)"/>
    <wire from="(240,490)" to="(240,760)"/>
    <wire from="(480,330)" to="(480,340)"/>
    <wire from="(350,680)" to="(350,690)"/>
    <wire from="(190,270)" to="(190,350)"/>
    <wire from="(470,350)" to="(580,350)"/>
    <wire from="(190,120)" to="(190,140)"/>
    <wire from="(330,570)" to="(440,570)"/>
    <wire from="(230,190)" to="(530,190)"/>
    <wire from="(470,350)" to="(470,430)"/>
    <wire from="(380,870)" to="(380,900)"/>
    <wire from="(240,260)" to="(240,480)"/>
    <wire from="(170,880)" to="(200,880)"/>
    <wire from="(340,920)" to="(430,920)"/>
    <wire from="(250,890)" to="(410,890)"/>
    <wire from="(710,550)" to="(730,550)"/>
    <wire from="(720,320)" to="(740,320)"/>
    <wire from="(610,50)" to="(820,50)"/>
    <wire from="(430,710)" to="(430,820)"/>
    <wire from="(430,550)" to="(450,550)"/>
    <wire from="(430,710)" to="(450,710)"/>
    <wire from="(390,830)" to="(410,830)"/>
    <wire from="(510,270)" to="(530,270)"/>
    <wire from="(170,770)" to="(170,880)"/>
    <wire from="(240,480)" to="(260,480)"/>
    <wire from="(460,480)" to="(740,480)"/>
    <wire from="(480,340)" to="(760,340)"/>
    <wire from="(440,810)" to="(450,810)"/>
    <wire from="(450,420)" to="(460,420)"/>
    <wire from="(250,500)" to="(260,500)"/>
    <wire from="(710,550)" to="(710,670)"/>
    <wire from="(190,120)" to="(200,120)"/>
    <wire from="(230,760)" to="(240,760)"/>
    <wire from="(430,860)" to="(510,860)"/>
    <wire from="(400,150)" to="(530,150)"/>
    <wire from="(370,780)" to="(370,840)"/>
    <wire from="(570,140)" to="(570,190)"/>
    <wire from="(720,810)" to="(730,810)"/>
    <wire from="(330,570)" to="(330,690)"/>
    <wire from="(730,420)" to="(740,420)"/>
    <wire from="(460,910)" to="(850,910)"/>
    <wire from="(430,550)" to="(430,670)"/>
    <wire from="(350,680)" to="(410,680)"/>
    <wire from="(720,660)" to="(720,670)"/>
    <wire from="(730,550)" to="(730,560)"/>
    <wire from="(710,850)" to="(710,860)"/>
    <wire from="(530,310)" to="(530,320)"/>
    <wire from="(120,70)" to="(440,70)"/>
    <wire from="(530,270)" to="(530,280)"/>
    <wire from="(550,210)" to="(550,220)"/>
    <wire from="(730,730)" to="(850,730)"/>
    <wire from="(810,270)" to="(810,280)"/>
    <wire from="(810,310)" to="(810,320)"/>
    <wire from="(430,850)" to="(430,860)"/>
    <wire from="(440,660)" to="(440,670)"/>
    <wire from="(150,370)" to="(200,370)"/>
    <wire from="(450,550)" to="(450,560)"/>
    <wire from="(120,100)" to="(170,100)"/>
    <wire from="(600,130)" to="(600,200)"/>
    <wire from="(150,370)" to="(150,900)"/>
    <wire from="(150,120)" to="(150,200)"/>
    <wire from="(670,860)" to="(710,860)"/>
    <wire from="(240,760)" to="(410,760)"/>
    <wire from="(770,320)" to="(810,320)"/>
    <wire from="(330,490)" to="(500,490)"/>
    <wire from="(470,330)" to="(470,350)"/>
    <wire from="(120,50)" to="(610,50)"/>
    <wire from="(400,150)" to="(400,360)"/>
    <wire from="(490,320)" to="(530,320)"/>
    <wire from="(170,770)" to="(200,770)"/>
    <wire from="(170,250)" to="(200,250)"/>
    <wire from="(120,120)" to="(150,120)"/>
    <wire from="(710,440)" to="(710,550)"/>
    <wire from="(430,440)" to="(430,550)"/>
    <wire from="(820,50)" to="(820,280)"/>
    <wire from="(440,70)" to="(720,70)"/>
    <wire from="(410,760)" to="(690,760)"/>
    <wire from="(500,490)" to="(780,490)"/>
    <wire from="(240,490)" to="(260,490)"/>
    <wire from="(440,660)" to="(450,660)"/>
    <wire from="(720,70)" to="(720,320)"/>
    <wire from="(410,830)" to="(420,830)"/>
    <wire from="(490,310)" to="(500,310)"/>
    <wire from="(690,830)" to="(690,890)"/>
    <wire from="(510,110)" to="(590,110)"/>
    <wire from="(730,310)" to="(730,360)"/>
    <wire from="(410,830)" to="(410,890)"/>
    <wire from="(840,220)" to="(850,220)"/>
    <wire from="(450,710)" to="(450,770)"/>
    <wire from="(690,830)" to="(700,830)"/>
    <wire from="(370,780)" to="(440,780)"/>
    <wire from="(750,570)" to="(760,570)"/>
    <wire from="(730,310)" to="(740,310)"/>
    <wire from="(770,310)" to="(780,310)"/>
    <wire from="(720,660)" to="(730,660)"/>
    <wire from="(560,140)" to="(570,140)"/>
    <wire from="(470,570)" to="(720,570)"/>
    <wire from="(730,800)" to="(730,810)"/>
    <wire from="(450,590)" to="(450,660)"/>
    <wire from="(250,500)" to="(250,890)"/>
    <wire from="(720,450)" to="(840,450)"/>
    <wire from="(110,770)" to="(170,770)"/>
    <wire from="(150,900)" to="(200,900)"/>
    <wire from="(430,700)" to="(430,710)"/>
    <wire from="(580,90)" to="(580,350)"/>
    <wire from="(730,590)" to="(730,660)"/>
    <wire from="(450,800)" to="(450,810)"/>
    <wire from="(330,480)" to="(330,490)"/>
    <wire from="(560,200)" to="(600,200)"/>
    <wire from="(710,730)" to="(710,820)"/>
    <wire from="(170,100)" to="(170,250)"/>
    <wire from="(710,700)" to="(710,730)"/>
    <wire from="(230,360)" to="(400,360)"/>
    <wire from="(540,250)" to="(540,280)"/>
    <wire from="(550,220)" to="(840,220)"/>
    <wire from="(290,490)" to="(330,490)"/>
    <wire from="(170,100)" to="(200,100)"/>
    <wire from="(540,210)" to="(540,250)"/>
    <wire from="(440,200)" to="(530,200)"/>
    <wire from="(840,340)" to="(840,450)"/>
    <wire from="(710,730)" to="(730,730)"/>
    <wire from="(730,430)" to="(750,430)"/>
    <wire from="(150,200)" to="(150,370)"/>
    <wire from="(190,140)" to="(190,180)"/>
    <wire from="(510,130)" to="(530,130)"/>
    <wire from="(230,110)" to="(510,110)"/>
    <wire from="(450,430)" to="(470,430)"/>
    <wire from="(410,890)" to="(690,890)"/>
    <wire from="(230,890)" to="(250,890)"/>
    <wire from="(500,260)" to="(780,260)"/>
    <wire from="(750,330)" to="(750,430)"/>
    <wire from="(410,680)" to="(420,680)"/>
    <wire from="(400,360)" to="(730,360)"/>
    <wire from="(500,310)" to="(500,490)"/>
    <wire from="(330,480)" to="(340,480)"/>
    <wire from="(840,220)" to="(840,340)"/>
    <wire from="(190,180)" to="(200,180)"/>
    <wire from="(230,260)" to="(240,260)"/>
    <wire from="(170,250)" to="(170,750)"/>
    <wire from="(450,710)" to="(850,710)"/>
    <wire from="(120,140)" to="(190,140)"/>
    <wire from="(690,680)" to="(700,680)"/>
    <wire from="(750,780)" to="(760,780)"/>
    <wire from="(670,270)" to="(810,270)"/>
    <wire from="(560,190)" to="(570,190)"/>
    <wire from="(240,260)" to="(500,260)"/>
    <wire from="(780,310)" to="(780,490)"/>
    <comp lib="1" loc="(360,480)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(760,570)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="1" loc="(230,360)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(340,720)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(770,310)" name="8-bit register">
      <a name="label" val="Lo"/>
    </comp>
    <comp loc="(470,780)" name="8-bit incr"/>
    <comp lib="0" loc="(850,710)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Addr Hi"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(120,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Hi"/>
    </comp>
    <comp loc="(430,670)" name="8-bit Mux"/>
    <comp loc="(470,570)" name="8-bit decr"/>
    <comp lib="0" loc="(120,120)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp loc="(840,760)" name="Delay"/>
    <comp loc="(450,420)" name="8-bit register">
      <a name="label" val="HiLatch"/>
    </comp>
    <comp lib="1" loc="(460,910)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(730,420)" name="8-bit register">
      <a name="label" val="LoLatch"/>
    </comp>
    <comp lib="1" loc="(230,260)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp loc="(530,280)" name="8-bit Mux"/>
    <comp lib="1" loc="(230,760)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(850,910)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OFlow"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(850,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="HiHold"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(230,890)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp loc="(490,310)" name="8-bit register">
      <a name="label" val="Hi"/>
    </comp>
    <comp lib="0" loc="(110,770)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Mem"/>
    </comp>
    <comp lib="0" loc="(760,780)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="0" loc="(850,730)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Addr Lo"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(750,570)" name="8-bit decr"/>
    <comp lib="0" loc="(120,100)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp lib="0" loc="(120,70)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DOut"/>
    </comp>
    <comp lib="0" loc="(120,50)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="DIn"/>
    </comp>
    <comp loc="(710,670)" name="8-bit Mux"/>
    <comp lib="1" loc="(380,870)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(560,140)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(710,820)" name="8-bit Mux"/>
    <comp loc="(560,190)" name="8-bit register">
      <a name="label" val="HiHold"/>
    </comp>
    <comp lib="0" loc="(850,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="RST"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(430,820)" name="8-bit Mux"/>
    <comp lib="1" loc="(230,110)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Wr"/>
    </comp>
    <comp loc="(600,100)" name="8-bit Mux"/>
    <comp lib="0" loc="(850,760)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="MWr"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(120,270)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Lo"/>
    </comp>
    <comp loc="(810,280)" name="8-bit Mux"/>
    <comp loc="(750,780)" name="8-bit incr"/>
    <comp lib="1" loc="(230,190)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="Rd"/>
    </comp>
    <comp lib="1" loc="(290,490)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </comp>
  </circuit>
  <circuit name="8-bit incr">
    <a name="circuit" val="8-bit incr"/>
    <a name="clabel" val="Inc"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(620,140)" to="(620,150)"/>
    <wire from="(180,280)" to="(180,290)"/>
    <wire from="(200,140)" to="(200,150)"/>
    <wire from="(130,110)" to="(250,110)"/>
    <wire from="(140,240)" to="(260,240)"/>
    <wire from="(480,140)" to="(480,150)"/>
    <wire from="(340,140)" to="(340,150)"/>
    <wire from="(610,220)" to="(610,290)"/>
    <wire from="(320,160)" to="(320,180)"/>
    <wire from="(260,220)" to="(260,240)"/>
    <wire from="(150,90)" to="(390,90)"/>
    <wire from="(160,260)" to="(400,260)"/>
    <wire from="(460,160)" to="(460,180)"/>
    <wire from="(550,150)" to="(550,180)"/>
    <wire from="(180,160)" to="(180,180)"/>
    <wire from="(170,270)" to="(170,290)"/>
    <wire from="(160,60)" to="(160,80)"/>
    <wire from="(410,150)" to="(410,180)"/>
    <wire from="(270,150)" to="(270,180)"/>
    <wire from="(170,70)" to="(530,70)"/>
    <wire from="(180,280)" to="(540,280)"/>
    <wire from="(160,260)" to="(160,290)"/>
    <wire from="(130,150)" to="(130,180)"/>
    <wire from="(600,160)" to="(600,180)"/>
    <wire from="(240,140)" to="(270,140)"/>
    <wire from="(100,140)" to="(130,140)"/>
    <wire from="(520,140)" to="(550,140)"/>
    <wire from="(110,60)" to="(110,160)"/>
    <wire from="(380,140)" to="(410,140)"/>
    <wire from="(140,60)" to="(140,100)"/>
    <wire from="(150,250)" to="(150,290)"/>
    <wire from="(180,120)" to="(180,160)"/>
    <wire from="(400,220)" to="(400,260)"/>
    <wire from="(410,150)" to="(420,150)"/>
    <wire from="(140,240)" to="(140,290)"/>
    <wire from="(520,160)" to="(530,160)"/>
    <wire from="(250,110)" to="(250,160)"/>
    <wire from="(270,150)" to="(280,150)"/>
    <wire from="(380,160)" to="(390,160)"/>
    <wire from="(540,220)" to="(540,280)"/>
    <wire from="(130,150)" to="(140,150)"/>
    <wire from="(240,160)" to="(250,160)"/>
    <wire from="(100,160)" to="(110,160)"/>
    <wire from="(320,100)" to="(320,160)"/>
    <wire from="(120,60)" to="(120,120)"/>
    <wire from="(550,150)" to="(560,150)"/>
    <wire from="(130,230)" to="(130,290)"/>
    <wire from="(550,140)" to="(550,150)"/>
    <wire from="(390,90)" to="(390,160)"/>
    <wire from="(120,120)" to="(180,120)"/>
    <wire from="(130,230)" to="(190,230)"/>
    <wire from="(120,220)" to="(120,290)"/>
    <wire from="(130,140)" to="(130,150)"/>
    <wire from="(170,60)" to="(170,70)"/>
    <wire from="(190,220)" to="(190,230)"/>
    <wire from="(410,140)" to="(410,150)"/>
    <wire from="(150,250)" to="(330,250)"/>
    <wire from="(270,140)" to="(270,150)"/>
    <wire from="(140,100)" to="(320,100)"/>
    <wire from="(390,160)" to="(390,180)"/>
    <wire from="(530,70)" to="(530,160)"/>
    <wire from="(110,160)" to="(110,180)"/>
    <wire from="(160,80)" to="(460,80)"/>
    <wire from="(170,270)" to="(470,270)"/>
    <wire from="(620,150)" to="(620,180)"/>
    <wire from="(460,80)" to="(460,160)"/>
    <wire from="(250,160)" to="(250,180)"/>
    <wire from="(480,150)" to="(480,180)"/>
    <wire from="(330,220)" to="(330,250)"/>
    <wire from="(340,150)" to="(340,180)"/>
    <wire from="(530,160)" to="(530,180)"/>
    <wire from="(150,60)" to="(150,90)"/>
    <wire from="(200,150)" to="(200,180)"/>
    <wire from="(180,60)" to="(600,60)"/>
    <wire from="(190,290)" to="(610,290)"/>
    <wire from="(170,140)" to="(200,140)"/>
    <wire from="(450,140)" to="(480,140)"/>
    <wire from="(310,140)" to="(340,140)"/>
    <wire from="(590,140)" to="(620,140)"/>
    <wire from="(600,60)" to="(600,160)"/>
    <wire from="(450,160)" to="(460,160)"/>
    <wire from="(480,150)" to="(490,150)"/>
    <wire from="(310,160)" to="(320,160)"/>
    <wire from="(340,150)" to="(350,150)"/>
    <wire from="(130,60)" to="(130,110)"/>
    <wire from="(170,160)" to="(180,160)"/>
    <wire from="(200,150)" to="(210,150)"/>
    <wire from="(470,220)" to="(470,270)"/>
    <wire from="(60,150)" to="(70,150)"/>
    <wire from="(590,160)" to="(600,160)"/>
    <wire from="(620,150)" to="(630,150)"/>
    <comp lib="1" loc="(140,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(190,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(120,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(630,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Cin"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(280,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(350,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(470,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(610,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(100,40)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="1" loc="(420,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(70,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(210,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(330,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(200,310)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="1" loc="(540,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(400,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(100,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="In"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(60,150)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="COut"/>
    </comp>
    <comp lib="1" loc="(560,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(260,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(200,310)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(490,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
  </circuit>
  <circuit name="8-bit decr">
    <a name="circuit" val="8-bit decr"/>
    <a name="clabel" val="Dec"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(620,140)" to="(620,150)"/>
    <wire from="(180,280)" to="(180,290)"/>
    <wire from="(200,140)" to="(200,150)"/>
    <wire from="(130,110)" to="(250,110)"/>
    <wire from="(140,240)" to="(260,240)"/>
    <wire from="(480,140)" to="(480,150)"/>
    <wire from="(340,140)" to="(340,150)"/>
    <wire from="(610,220)" to="(610,290)"/>
    <wire from="(260,220)" to="(260,240)"/>
    <wire from="(320,160)" to="(320,180)"/>
    <wire from="(150,90)" to="(390,90)"/>
    <wire from="(160,260)" to="(400,260)"/>
    <wire from="(460,160)" to="(460,180)"/>
    <wire from="(550,150)" to="(550,180)"/>
    <wire from="(170,270)" to="(170,290)"/>
    <wire from="(160,60)" to="(160,80)"/>
    <wire from="(180,160)" to="(180,180)"/>
    <wire from="(410,150)" to="(410,180)"/>
    <wire from="(270,150)" to="(270,180)"/>
    <wire from="(170,70)" to="(530,70)"/>
    <wire from="(180,280)" to="(540,280)"/>
    <wire from="(160,260)" to="(160,290)"/>
    <wire from="(130,150)" to="(130,180)"/>
    <wire from="(600,160)" to="(600,180)"/>
    <wire from="(240,140)" to="(270,140)"/>
    <wire from="(100,140)" to="(130,140)"/>
    <wire from="(520,140)" to="(550,140)"/>
    <wire from="(110,60)" to="(110,160)"/>
    <wire from="(380,140)" to="(410,140)"/>
    <wire from="(140,60)" to="(140,100)"/>
    <wire from="(150,250)" to="(150,290)"/>
    <wire from="(180,120)" to="(180,160)"/>
    <wire from="(400,220)" to="(400,260)"/>
    <wire from="(410,150)" to="(420,150)"/>
    <wire from="(140,240)" to="(140,290)"/>
    <wire from="(250,110)" to="(250,160)"/>
    <wire from="(270,150)" to="(280,150)"/>
    <wire from="(540,220)" to="(540,280)"/>
    <wire from="(130,150)" to="(140,150)"/>
    <wire from="(320,100)" to="(320,160)"/>
    <wire from="(120,60)" to="(120,120)"/>
    <wire from="(550,150)" to="(560,150)"/>
    <wire from="(130,230)" to="(130,290)"/>
    <wire from="(550,140)" to="(550,150)"/>
    <wire from="(390,90)" to="(390,160)"/>
    <wire from="(120,120)" to="(180,120)"/>
    <wire from="(130,230)" to="(190,230)"/>
    <wire from="(120,220)" to="(120,290)"/>
    <wire from="(130,140)" to="(130,150)"/>
    <wire from="(170,60)" to="(170,70)"/>
    <wire from="(190,220)" to="(190,230)"/>
    <wire from="(410,140)" to="(410,150)"/>
    <wire from="(150,250)" to="(330,250)"/>
    <wire from="(270,140)" to="(270,150)"/>
    <wire from="(140,100)" to="(320,100)"/>
    <wire from="(390,160)" to="(390,180)"/>
    <wire from="(530,70)" to="(530,160)"/>
    <wire from="(110,160)" to="(110,180)"/>
    <wire from="(160,80)" to="(460,80)"/>
    <wire from="(170,270)" to="(470,270)"/>
    <wire from="(620,150)" to="(620,180)"/>
    <wire from="(460,80)" to="(460,160)"/>
    <wire from="(250,160)" to="(250,180)"/>
    <wire from="(480,150)" to="(480,180)"/>
    <wire from="(330,220)" to="(330,250)"/>
    <wire from="(340,150)" to="(340,180)"/>
    <wire from="(150,60)" to="(150,90)"/>
    <wire from="(530,160)" to="(530,180)"/>
    <wire from="(200,150)" to="(200,180)"/>
    <wire from="(180,60)" to="(600,60)"/>
    <wire from="(190,290)" to="(610,290)"/>
    <wire from="(170,140)" to="(200,140)"/>
    <wire from="(450,140)" to="(480,140)"/>
    <wire from="(310,140)" to="(340,140)"/>
    <wire from="(590,140)" to="(620,140)"/>
    <wire from="(600,60)" to="(600,160)"/>
    <wire from="(480,150)" to="(490,150)"/>
    <wire from="(340,150)" to="(350,150)"/>
    <wire from="(130,60)" to="(130,110)"/>
    <wire from="(200,150)" to="(210,150)"/>
    <wire from="(470,220)" to="(470,270)"/>
    <wire from="(60,150)" to="(70,150)"/>
    <wire from="(620,150)" to="(630,150)"/>
    <comp lib="1" loc="(350,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(120,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(70,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(610,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(470,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(140,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(200,310)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="1" loc="(420,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(330,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(260,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(280,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(60,150)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="BOut"/>
    </comp>
    <comp lib="1" loc="(540,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(490,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="1" loc="(210,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(100,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="In"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(100,40)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(630,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Bin"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(200,310)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(400,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(190,220)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(560,150)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="negate1" val="true"/>
    </comp>
  </circuit>
  <circuit name="Delay">
    <a name="circuit" val="Delay"/>
    <a name="clabel" val="Dlay"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(430,250)" to="(440,250)"/>
    <wire from="(400,250)" to="(410,250)"/>
    <wire from="(490,250)" to="(500,250)"/>
    <wire from="(460,250)" to="(470,250)"/>
    <wire from="(520,250)" to="(530,250)"/>
    <wire from="(310,250)" to="(320,250)"/>
    <wire from="(280,250)" to="(290,250)"/>
    <wire from="(370,250)" to="(380,250)"/>
    <wire from="(340,250)" to="(350,250)"/>
    <wire from="(250,250)" to="(260,250)"/>
    <wire from="(220,250)" to="(230,250)"/>
    <comp lib="1" loc="(280,250)" name="Buffer"/>
    <comp lib="1" loc="(250,250)" name="Buffer"/>
    <comp lib="1" loc="(430,250)" name="Buffer"/>
    <comp lib="1" loc="(520,250)" name="Buffer"/>
    <comp lib="1" loc="(340,250)" name="Buffer"/>
    <comp lib="0" loc="(530,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(400,250)" name="Buffer"/>
    <comp lib="0" loc="(220,250)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="In"/>
    </comp>
    <comp lib="1" loc="(370,250)" name="Buffer"/>
    <comp lib="1" loc="(490,250)" name="Buffer"/>
    <comp lib="1" loc="(460,250)" name="Buffer"/>
    <comp lib="1" loc="(310,250)" name="Buffer"/>
  </circuit>
</project>
