Add 2015/endoh3/try.sh + format/typo checks
A new make rule (or alias for mullender and back_to) called 'future' was
added for the theme. The try.sh script uses make future ('back_to' just
doesn't look that good in my eyes even when I added it).
The try.sh tries to stay in character with the award theme a bit too
though that will only be noticeable if you pay attention. I found the
films very boring (though maybe years later I would find it more
enjoyable) so I'm sure that something more fun could have been
added if I knew them more but I do not. Well I tried anyway.
This commit is contained in:
1 parent
29903d763b
commit
d9b2810392
4 files changed
+50
-10
No files matched your search
@@ -17,14 +17,12 @@ make
|
||||
To see the original [mullender](mullender.c) in action:
|
||||
|
||||
```sh
|
||||
cc -o prog prog.c mullender.c # or make mullender or make back_to
|
||||
./prog
|
||||
q
|
||||
^C # where ^C is ctrl-C, interrupt.
|
||||
./try.sh
|
||||
```
|
||||
|
||||
Observe what happens when you hit enter or another character! Send INTR to end
|
||||
the program.
|
||||
Observe what happens when you hit enter or another character! You might even try
|
||||
typing out, one character at a time, `1984/mullender`, and then see what it looks
|
||||
like at the end. Send INTR to end the program.
|
||||
|
||||
More generally use:
|
||||
|
||||
@@ -34,7 +32,7 @@ cc -o prog prog.c foo.c
|
||||
^C # if necessary, where ^C is ctrl-C, interrrupt
|
||||
```
|
||||
|
||||
to run `prog` as whatever foo.c is in the joke PDP-11 emulator.
|
||||
to compile and run `prog` as whatever foo.c is in the joke PDP-11 emulator.
|
||||
|
||||
|
||||
## Judges' remarks:
|
||||
@@ -55,6 +53,7 @@ clue, see the end of the author's remarks.) If in doubt, use
|
||||
|
||||
## Author's remarks:
|
||||
|
||||
|
||||
### Hint / Compatibility
|
||||
|
||||
* A little-endian system is required due to an external factor.
|
||||
@@ -65,6 +64,7 @@ the same reason. But I believe it is reasonably portable.
|
||||
the source code from all angles..
|
||||
* Find `main()` function.
|
||||
|
||||
|
||||
### Spoiler
|
||||
|
||||
This program is a joke PDP-11 emulator. ("ll-dpd" is embedded in the code.
|
||||
@@ -80,6 +80,7 @@ clang -o prog prog.c mullender.c
|
||||
|
||||
You can enjoy the legendary winner of the first IOCCC, again.
|
||||
|
||||
|
||||
### Internal
|
||||
|
||||
This program uses `__attribute__((constructor))`, which is a GCC extension, to
|
||||
@@ -104,6 +105,7 @@ needed for [mullender.c](mullender.c) to work:
|
||||
* 4: Auto-decrement deferred
|
||||
* 6: Index (incomplete)
|
||||
|
||||
|
||||
### Limitations
|
||||
|
||||
Non-trivial combination of instruction and addressing mode may cause undefined
|
||||
|
||||
Reference in new issue
Block a user