Third solution is in hardware modification of the computer (valid for XL/XE only). Bend up the pins 7 & 8 of MMU (see here) and attach two microswitches between the pins and the corresponding socket holes.