HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
jes
scamp-cpu
Slash2021–2023
jes / scamp-cpu

scamp-cpu

A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

4Distinct people
7Mentions
0Explicit recommenders
301GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year7 dated mentions

Observed mentions: 2021-02-09 14:13:24 UTC to 2023-10-08 19:20:21 UTC.

02462021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 6 mentions; 1 submissions, 5 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC615
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

What Hacker News says

7 sources
Re the text editor, when I was writing an editor for my homemade CPU I used the one from this tutorial: https://viewsourcecode.org/snaptoken/kilo/index.html - it is 1000 lines of C. Might be useful to you. I have diverged a bit from the tutorial because I didn't want syntax highlighting, I really wanted vi-style keybindings, and my environment is much more performance-constrained. Mine is at https://github.com/jes/scamp-cpu/blob/master/sys/kilo.sl (in my made-up programming language).
In 500 Lines or Less (2016)
I don't have a great single resource unfortunately. I'd like to put up a web page about it at some point. This is the github repo that contains everything: https://github.com/jes/scamp-cpu/ - some of the stuff under "doc/" might be what you're after (but some of it is just incoherent ramblings). I have some blog posts here: https://incoherency.co.uk/blog/tags/cpu.html And there is a video here, but it's not really very informative: https://www.youtube.com/watch?v=4sBB0iD6XvI
In Advent of Code 2021
Hi, I'm the author. Thanks for posting this! If anyone wants to read more about this project, you might enjoy the "cpu" tag on my blog: https://incoherency.co.uk/blog/tags/cpu.html or the "doc/" directory in the git repo: https://github.com/jes/scamp-cpu/tree/master/doc The latest state is that I have now got the UART and CompactFlash card working, and have booted up the kernel all the way to the shell, at 1 MHz, and it is close to fast enough to use interactively.
In Scamp – a homebrew 16-bit CPU
Thanks, this is serendipitous timing. I definitely plan to watch the YouTube playlist. I'm designing a simple CPU at the moment[1] and one of the things that keeps me awake at night is thinking about how to make a compiler for it. It only supports 64K words of RAM (and I'm not planning to implement bank switching), and I definitely want the compiler to be self-hosting on my CPU, so retargeting LLVM or similar won't be applicable. I've looked at Small-C[2], Cowgol[3], and PL/0[4] which all target related goals, from different directions. [1] https://github.com/jes/scamp-cpu [2] https://en.wikipedia.org/wiki/Small-C [3] http://cowlark.com/cowgol/ [4] https://en.wikipedia.org/wiki/PL/0
In Compiler Class

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.