Back in the eighties people tried to squash big games into microcomputers. I don't recall any similar technology to Z-code but I do remember that games like Citadel and Elite on the BBC micro used certain techniques to compress the games into the 32K available on the model B:
https://en.wikipedia.org/wiki/Citadel_(video_game)
https://en.wikipedia.org/wiki/Elite_(video_game)
https://www.bbcelite.com/deep_dives/program_flow_of_the_main...