Simple combinatorial PAL/GAL reader

I am afraid that I am more on the blackbox side, I know it is only a memory decoder and according to schematics for the original device I am assuming that it is only a combinational logic. I can post that part of the schematics If you guys are willing to take look at it, but I know that this is not directly arduino related. Anyway I will try the INPUT_PULLUP tip.