Status: Links: Nand2Tetris Project 5
HACK Memory Implementation
Notes
- RAM16k for storage, SCREEN (8k) for information, and keyboard
- Surprised I was able to get the theory and implementation of it, only problem was that I didn’t know much about the kbd chip and had to search it up
- Should’ve known it was out only lul
 
Code
|  |  | 
Truth Table
| in | load | address | out | 
|---|---|---|---|
| 12345 | 1 | 010000000000000 | 0 | 
| 12345 | 1 | 010000000000000 | 12345 | 
| 12345 | 1 | 100000000000000 | 0 | 
| 12345 | 1 | 100000000000000 | 12345 | 
| -1 | 1 | 000000000000000 | 0 | 
| -1 | 1 | 000000000000000 | -1 | 
| 9999 | 0 | 000000000000000 | -1 | 
| 9999 | 0 | 000000000000000 | -1 | 
| 9999 | 0 | 010000000000000 | 12345 | 
| 9999 | 0 | 100000000000000 | 12345 | 
| 12345 | 1 | 000000000000000 | -1 |