From 66dac82f59bf5f56e8f22f624aea174091112e57 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Sun, 6 Sep 2020 21:26:07 +0200 Subject: [PATCH] Add Muddle code or printing a maze. As per the specification in the Imlac portion of the Maze game. --- src/imlac/maze.print | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/imlac/maze.print diff --git a/src/imlac/maze.print b/src/imlac/maze.print new file mode 100644 index 00000000..681a40ab --- /dev/null +++ b/src/imlac/maze.print @@ -0,0 +1,84 @@ +; " -*- muddle -*- " +; "Print an imtraned maze." + +> + "W" "E" "S" "T" !]> + " E" " A" " S" " T" + !]> + +>)) + ;"Read 4 bits from an imtraned file." + ;"Ignore all characters outside @-O." + > <- .C 64>) + (ELSE )>> + + 16> >> + + 256> >> + + + > + )>>> + + + .I>> + ;"Get block address. All ones means end." + 65535> )> + > + > + )>> + ;"Get block checksum." + >> + + + > + +> + +)) + ;"Print one row of the maze." + + + + )) + > ) + (ELSE )> + > + )>> + > + + + + + > + + )> + >> + + + > + +)) + ;"Read an imtraned maze and print it." + ) + (OUTCHAN ) + (ELSE .OUTCHAN)>)) + + > + + )>>>