git @ Cat's Eye Technologies SMITH / 1be6ddf
Update links and headings. catseye 10 years ago
1 changed file(s) with 16 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
1818 >
1919 > — Hunter S. Thompson, *Fear and Loathing in Las Vegas*
2020
21 ### What is SMITH?
22
23 SMITH, the successor to [SMETANA](/projects/smetana/), is a programming
24 language that goes one better than
25 [Bullfrog](http://members.tripod.com/rkusnery/bullfrog.html). Not only
26 are there no conditional jumps, there are no jumps **whatsoever**. The
27 program counter can *only* be incremented and *only* instruction by
28 instruction.
21 What is SMITH?
22 --------------
23
24 SMITH, the successor to [SMETANA][], is a programming language that goes
25 one better than [Bullfrog][]. Not only are there no conditional jumps,
26 there are no jumps **whatsoever**. The program counter can *only* be
27 incremented, and *only* instruction by instruction.
28
29 [SMETANA]: http://catseye.tc/projects/smetana/
30 [Bullfrog]: http://esolangs.org/wiki/Bullfrog
2931
3032 ### What the...???
3133
5759 different (there's only indirect references to registers, not memory,
5860 anyway.)
5961
60 ### Overview
62 Overview
63 --------
6164
6265 Consider the SMITH machine to have an unlimited number of registers.
6366 These are called `R0` to `Rn` where no arbitrary limit is imposed on
8386 programmer desires. However, it may not precede offsets (they should be
8487 preceded by either `+` or `-`.)
8588
86 ### Instructions
89 Instructions
90 ------------
8791
8892 The basic instructions (available in the original version) are:
8993
130134 ; arbitrary text composing a source comment ; Kilroy was here
131135 REP int OPCODE [destination[, source[, length]]] REP 50 STOP
132136
133 ### Explanation
137 Explanation
138 -----------
134139
135140 `MOV` will assign a register a value without modifying it.
136141