annotate interps/c-intercal/pit/tpk.doc @ 12010:f727a35a9eb8 draft

<kspalaiologos> ` asmbf <<<"mov r1,0/div r1,0" > stuff.b
author HackEso <hackeso@esolangs.org>
date Tue, 12 Nov 2019 18:24:45 +0000
parents 859f9b4339e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
996
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
1 I have made my TPK program available on
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
2 http://www-cs-faculty.stanford.edu/~knuth/programs.html
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
3 and I have no objection if you or other people with INTERCAL sites
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
4 add it to their collection. If you have time to check it out
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
5 (at least a little), I think you'll see that it introduces a few
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
6 new hacks that work only on INTERCAL, including DON'T RESUME #1
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
7 and REINSTATE NEXTING. Also a way to avoid simple branching by using
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
8 an array: Suppose you want to set x<-y if and only if z is true.
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
9 Then keep x in ;X SUB#1 and "shadow x" in ;X SUB#2 and convert
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
10 z to .Z = 1 if true, 2 if false; then set ;X SUB .Z <- y (no branching).
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
11 If you have time to look at only a little bit of the program,
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
12 I recommend the last two subroutines, "CMP" (which is teleprinter
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
13 code for 23438) and "TIX" (29904). Someday I'll publish clues about
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
14 what is going on, in my Fun and Games book; the code is filled with
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
15 jokes that only a true hacker can appreciate.... and I think I've
859f9b4339e6 <Gregor> tar xf egobot.tar.xz
HackBot
parents:
diff changeset
16 used every non-newfangled feature of the language.