---
title: "Discussion on \"How a Computer Works: From a NAND Gate to a CPU\" | Hashnode"
description: "Discussion on \"How a Computer Works: From a NAND Gate to a CPU\". What I learned from J. Clark Scott's book \"But How Do It Know?\""
url: "https://hashnode.com/posts/how-a-computer-works-nand-gate-to-cpu/6b0d61d9dfbe770bc0f1bd20"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How a Computer Works: From a NAND Gate to a CPU](https://blog.codechem.com/how-a-computer-works-nand-gate-to-cpu?utm_source=hashnode&utm_medium=feed)

What I learned from J. Clark Scott's book "But How Do It Know?"

19h ago · 18 min read · blog.codechem.com  
Read the article

-   [#computer-architecture](https://hashnode.com/tag/computer-architecture)
-   [#computerscience](https://hashnode.com/tag/computerscience)
-   [#cpu](https://hashnode.com/tag/cpu)
-   [#logicgates](https://hashnode.com/tag/logicgates)
-   [#low-level-programming](https://hashnode.com/tag/low-level-programming)
-   [#c](https://hashnode.com/tag/c)
-   [#books](https://hashnode.com/tag/books)

## Written by

[Damjan Lulakov](https://hashnode.com/@dlulakov)

@dlulakov

  
[View profile](https://hashnode.com/@dlulakov)

## Responses 1

Markdown supported · ⌘↵ to post

[Jesse M. Hoffer](https://hashnode.com/@jessemhoffer)

[17h ago](https://hashnode.com/posts/how-a-computer-works-nand-gate-to-cpu/6b0d61d9dfbe770bc0f1bd20/comment/6b0d79085a5a7cd53a1f5db8)

The "crazy room" framing for the NAND gate is a great teaching device. I have read explanations of NAND universality before, but the moment where four gates loop back to remember a bit is where it actually clicked for me. The jump from "one enable plus one set equals one copy" to `mov r4, r1` is a lovely bridge between the wiring and the assembly people actually write.
