Skip to content

Instantly share code, notes, and snippets.

View larsbrinkhoff's full-sized avatar
💭
Debugging PDP-10 code

Lars Brinkhoff larsbrinkhoff

💭
Debugging PDP-10 code
View GitHub Profile
@TG9541
TG9541 / ws2812.fs
Last active September 29, 2023 09:57
STM8 eForth WS2812 LED Strip Demo
\ A STM8 eForth WS2812 demo with tested timing
\ for STM8S w/ 16MHz (HSI) clock
\ 3.3V MINDEV: PB4 with 1K pull-up to 5V works well
\res MCU: STM8S103
\res export PB_DDR PB_ODR PB_CR1
#require ]B!
#require ]CB
@larsbrinkhoff
larsbrinkhoff / Knight-keyboard.kbd.json
Last active December 30, 2021 08:58
Knight keyboard
[
{
"backcolor": "#363636",
"name": "Knight keyboard"
},
[
{
"x": 0.5,
"c": "#0073a2",
"t": "#CCCCB7",
@peff
peff / git-du
Last active May 17, 2019 07:43
git-du script
#!/usr/bin/perl
#
# Generate a listing of all paths ever used in the repository, along with the
# disk space used by the path throughout the entire history. Note that sizes
# for trees are cumulative; they include the sizes of all of the paths below
# them, in addition to the tree storage itself. All sizes are in bytes, and
# reflect git's delta and zlib compression.
#
# One caveat is that this is just the _current_ on-disk size. The on-disk size
# of each object may change if git repacks and chooses different delta bases,
@thequux
thequux / micro.py
Created September 1, 2014 23:21
KS10 microcode assembler
#!/usr/bin/python
# A microcode assembler
import os
import os.path
import re
import collections
import IPython.Shell
@grawity
grawity / README.md
Created June 2, 2011 05:39
ADVENT magic mode script for TOPS-10-In-a-Box

This script was written for the TOPS-10-In-a-Box project. It calculates the passwords for Magic Mode in ADVENT, and is based on the one available at Zonadepruebas website.

Description copied from Zonadepruebas:

Don Woods, who deviced this authentication scheme 29 years ago, has given his kind permission to disclose it publically

'Advent' is reputedly the first text adventure game. It was originally created by William Crowthers, and later expanded by Don Woods. It was programmed in Fortran, on a DEC PDP-10 computer, and Woods' version dates from 1977. This first version has a maintenance feature called "Magic Mode". It was intended for administrators only, and involves a bizarre authentication process. After entering "MAGIC MODE" as first command in the game, the program will ask:

  1. "ARE YOU A WIZARD?", (replay "YES")
  2. "PROVE IT! SAY MAGIC WORD", (default is "DWARF")