Mega Man X Password (En/De)coder

Output will be here
Notes: Passwords pointing to the Opening Stage will be rejected if any upgrades are used (besides Hadouken which only works with full Heart tanks anyway). Sad but true. For a weird glitch, try Hadouken with full Heart Tanks but no Upgrades.

Hadouken upgrade will only be loaded if the button combo L+R+X+Down is held BEFORE pressing Start on the load screen (not while Start is held). Only works if you have all Heart Tanks and only with full HP.

The "XOR" value (0-7) merely changes the permutation of the final password (there are 8 possible) by XOR bit mask, but has no effect on gameplay. And the parity bits are used in case of odd numbers of bits. Without the correct parity bits set, the password will be rejected.