each code is given by a different ending (if I remember it correctly)
and each ending depends on the speed at which you complete the game.
for spoilers, if you want to just know the passwords:
https://www.generation-msx.nl/software/casper-croes/phenix-corrupta/cheats/8013/