Skip to content

Instantly share code, notes, and snippets.

@monsonite
monsonite / Integer_Print
Created August 6, 2017 17:59
An integer print routine for an EDSAC work-alike
0 0A
1 49E Jump to 49
2 0A
3 0A
4 1A Used to ADD 1
5 48A Code for ascii zero
6 0A
7 0A
8 0A
9 0A
// SIMPL - A Serial Interpreted Minimal Programming Language
// Inspired by Txtzyme - by Ward Cunningham
// This version runs on Maker Uno with speaker on Digital 8
// SIMPL allows new words to be defined by preceding them with colon : (Like Forth)
// New words use CAPITALS - so 26 words are possible in the vocabulary
// Words A-F have been predefined as musical tones - but you can write over them
// A word can be a maximum of 48 characters long
// Type ? to get a list off all defined words
#define bufRead(addr) (*(unsigned char *)(addr))