I cannot say for sure if the IC is 14 or 16 pin type. Any way if it is a 14 pin, it is most likely be 74LS04 Hex Inverter. Only need to use one gate (e.g pin 1 and 2).
I am planning to make a cart clone for the sake of old days. Sure, it will be practically useless to use, since all 8 and 16 k carts are already hacked.
Did not completely finished drawing it, but I will attach what I have if any one is interested. (hope to make a new topic for it one day)