Simple combinatorial PAL/GAL reader

I did consider mentioning INPUT_PULLUP. But how do you detect if the output of a PAL/GAL is tri-state or HIGH? That would require biased inputs and analogue reads.