<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lucas</title>
    <description>The latest articles on DEV Community by Lucas (@lucas_2aaddfecf7bf095b515).</description>
    <link>https://dev.to/lucas_2aaddfecf7bf095b515</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4174153%2F04c9e7e2-5ce7-45b0-97ec-974d8fb7083b.png</url>
      <title>DEV Community: Lucas</title>
      <link>https://dev.to/lucas_2aaddfecf7bf095b515</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucas_2aaddfecf7bf095b515"/>
    <language>en</language>
    <item>
      <title>I built an 8-bit CPU from NAND gates, and it runs Tetris</title>
      <dc:creator>Lucas</dc:creator>
      <pubDate>Fri, 09 Oct 2026 19:55:40 +0000</pubDate>
      <link>https://dev.to/lucas_2aaddfecf7bf095b515/i-built-an-8-bit-cpu-from-nand-gates-and-it-runs-tetris-1f1g</link>
      <guid>https://dev.to/lucas_2aaddfecf7bf095b515/i-built-an-8-bit-cpu-from-nand-gates-and-it-runs-tetris-1f1g</guid>
      <description>&lt;p&gt;I just finished a side project I’m pretty proud of: a complete 8-bit CPU built from a single building block, the NAND gate.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/O8znJoZkAmw" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;How it’s built&lt;/p&gt;

&lt;p&gt;From NAND gates I made the basic logic gates, then adders, registers and memory, all the way up to a full CPU. Everything runs in Digital Logic Sim, a free logic simulator, so there’s no hardware to buy.&lt;/p&gt;

&lt;p&gt;8-bit ALU (numbers from 0 to 255)&lt;br&gt;
16-bit addressing, so 64K of RAM&lt;br&gt;
800 kHz clock&lt;br&gt;
A small OS running Snake, Breakout, Flappy Bird and Tetris, playable live with the keyboard&lt;br&gt;
The software side&lt;/p&gt;

&lt;p&gt;Writing programs in binary by hand got painful very quickly. So I wrote my own programming language and a compiler that outputs the program memory contents directly.&lt;/p&gt;

&lt;p&gt;What’s next&lt;/p&gt;

&lt;p&gt;I’m thinking about a step-by-step tutorial series on building your own CPU from the NAND gate. Would that interest you? Let me know in the comments!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>computerscience</category>
      <category>hardware</category>
      <category>compilers</category>
    </item>
  </channel>
</rss>
