Measures Concepts
GitHub icon

Subleq

Subleq - Instruction set architecture

< >

Subleq is an instruction set architecture created in 2009 by David Roberts.

Source code:
git clone https://github.com/davidar/subleq
#1148on PLDB 15Years Old

Try now: Riju

CPU design and toolchain for a simple computer architecture


Example from Riju:
12 12 3 36 37 6 37 12 9 37 37 12 0 -1 15 38 36 18 12 12 21 53 37 24 37 12 27 37 37 30 36 12 -1 37 37 0 39 0 -1 72 101 108 108 111 44 32 119 111 114 108 100 33 10 53
Example from hello-world:
loop: hello (-1) minusOne loop minusOne checkEnd+1 checkEnd: Z hello (-1) Z Z loop . minusOne: -1 . hello: "Hello World\n" Z: 0

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout