This port was awesome to play!
I once had the same book (101 Basic Computer Games), and converted the program to Commodore 64 basic and it's 40-character-wide screen, saved to a tape drive. I even added an option at the beginning to increase phaser power by routing through the warp engines, but if either became too damaged you lost both phasers and warp (like in the first movie). I tried adding planets and text-based missions, but sadly the variables I required wouldn't fit in 64k of memory.... Good times!