diff --git a/1985/lycklama/Makefile b/1985/lycklama/Makefile index ce02663ac..de594d275 100644 --- a/1985/lycklama/Makefile +++ b/1985/lycklama/Makefile @@ -58,7 +58,7 @@ ARCH= # Defines that are needed to compile # -CDEFINE= +CDEFINE= -DZ=0 # Include files that are needed to compile # diff --git a/1985/lycklama/README.md b/1985/lycklama/README.md index 745f0668f..e0b7e64ad 100644 --- a/1985/lycklama/README.md +++ b/1985/lycklama/README.md @@ -13,7 +13,20 @@ make all modern compilers. In the past 'define' in `#define` could even be defined but to get this to work on modern systems Cody changed the `#o` lines to `#define`. The `lycklama.alt.c` is the original source code as it provides some fun input for -the entry. +the entry. Thank you Cody! With a tip from [Yusuke +Endoh](/winners.html#Yusuke_Endoh) it was indirectly noticed that if one slows +down the call to `write()` one can see some fun output that's not visible with +modern systems so Cody added a call to `usleep()`. The default time is `0` +which disables it (in order to make it as close to original as possible; an alt +version already exists mostly for fun output). In order to change the speed (try +500 or 700) do: + +```sh +make CDEFINE+="-DZ=700" clobber all +``` + +Thank you Yusuke! + ## Try: diff --git a/1985/lycklama/lycklama.c b/1985/lycklama/lycklama.c index 3bb0f7462..72a594f36 100644 --- a/1985/lycklama/lycklama.c +++ b/1985/lycklama/lycklama.c @@ -9,7 +9,7 @@ #define o_ main #define o__ if #define oo_ 0 -#define _o(_,__,___)(void)___o(_,__,ooo(___)) +#define _o(_,__,___)(void)___o(_,__,ooo(___),Z&&usleep(Z)) #define __o (o_o_<<((o_o_<<(o_o_<