Hacker GitHub

← All repos

wkoszek/cpu60

View on GitHub ↗ ★ 165 C

Simple CPU model written in 60 lines of C with 8 registers and basic instructions

6 mentions on Hacker News by 2 people: 3 stories, 3 comments · first 2015-09-28 · latest 2016-11-15

Mentions per year 6 mentions · busiest year 2015 (5)
20082026
  1. Very nice. I'm going to star all of these. Reminds me my CPU model in 60 lines of code: https://github.com/wkoszek/cpu60
  2. …right: I didn't design it to be run with UID 0. However I fixed the issue and gave you the credit: https://github.com/wkoszek/cpu60/commit/672711f3e06bba424b98...
  3. Because it will force only to execute one of the conditional branch. https://github.com/wkoszek/cpu60/blob/master/cpu60.c might execute several. (It may be on purpose though.)
    comment by hartator · 2015-10-13 · in Show HN: CPU simulator in 60 lines of code