To ensure that the computer starts in a known state when it is switched on, I need to introduce a method of resetting the 6502. The 6502 contains a reset pin, which needs to be held low for a couple of cycles. Placing a switch between this pin and ground is not enough. First, we need to keep the pin high when it is not being pressed. I will achieve this by connecting a 1K resistor between the reset pin and 5V. This will keep the reset pin high but allow it to go low when the button is pressed.

Secondly, I need to consider switch bounce. When a button is pressed, it makes contact multiple times before settling down. To stop this from happening, I need to add a switch debouncer. There are many ways to make a switch debouncer.