Hey thank you both for getting back with me, I think there might be some language or culture barrier (and even in my own country no one understands me
)
so let me clear up:
Im not using a 6502 for several weeks, maybe a month or so, I have all these little experiments to do first!!
my purpose, is to work in 65xx, a long term goal. I do not feel ready to do much with one, and as stated you need a few chips around it to do much, latches, shift registers and such depending on what you are doing. Before I put a 6502 in a board a let the magic smoke out, I want to get more familiar with those logic 'glue' and support chips. some circuitry basics I forgot or never learned when making a noisemaker.
I made a little picture, I hope this helps where words do not.
so I labeled things a bit:
1* Switch 1, or 'the button', this is symbolic and represents a 'write' operation to a memory location taking place.
2* Switch 2, or 'the switch', this is symbolic and represents the contents of a single bit in the accumulator.
3* AND gate, this is also symbolic and represents the 'write signal and the clock pulse with the chip select and address controller and...'
? this is the thing Im not sure on, I think its a Latch?
the rest is a generic LED, resistor and V+
here is what I want to do, at power on, I want the LED off.
if I put the switch to contact, and then push the button, I want the LED to turn on and stay on.
If I put the switch to open, and then push the button, I want the LED to turn off and stay off.
so the LED is independent of the switch, it stores the state last "written" to it by pushing the button
once this is working, there will be 8 of them in a row. once i have a 6502, in a few weeks, I will write the contents of a register to a memory location, this is that memory location. so I can visually see the register, or status register etc on a bank of LEDs, this is a ways away. Right now, I just want to get the above circuit working.
I did read that digikey article, those are really great. After reading, I think I want to use an RC debounce circuit instead of an IC, I have several keys to press in the long run, a D-Pad, buttons, numeric keys and a keyboard later. it gets expensive to use ICs, a 9 bank debounce IC is $10 and on devices intended to be inexpensive, this wont work.
thankfully debouncing is not too crucial right now and RC is easy enough to do, its getting the 'latch' working on the banks of LEDs to write to so I can see whats in memory without a screen.