Simple combinatorial PAL/GAL reader

Mode INPUT_PULLUP will help with tristate outputs. A bigger problem will arise if the chip contains feedbacks that turn strictly combinational logic into sequential networks (counters, state machines...).