Not just fiction; interactive fiction. Adventure games, in other words.

Silicon Castles
chess playing genies rule OK
vbccz
a C compiler that targets the Z machine
baZic
a minimal Basic interpreter for the Z-machine