I'm currently working on the RAM of my 16 bit computer which consists of two AS6C6264 SRAM chips. On each chip I have CE2 connected to 5V, CE# connected to ground, WE# connected to 5V through a pull-up resistor and a button that is connected to ground. To manually write to the RAM, I have two 8 pin dip switches that go through data selectors and into the inputs of the RAM. Whenever I push the button, WE# goes low and the data from the data selectors is written into the RAM.
For whatever reason, this works perfectly fine whenever there are 5 or less dip switches in the up position. Whenever there are more than 5 dip switches in the up position and I try writing to the RAM, it doesn't seem to write correctly to the RAM, and at a certain point, it just writes all 0's.
I have no idea what to even look for, I tried looking at some of the pins on an oscilloscope, but it hasn't really shown me much, other than that there is noise.
Thanks for any help or advice.