Nogard wrote:
could you please check my connection?
Rockwell
R6502 datasheet.
Pin 36 is NC, but it's tied to +5V. //it's NC for the
R65C02, too.
Pin 1 is GND, but it's left open.
Pin 40 is /RES, the switch ties it to GND, that yes, but you better add a 4k7 pullup resistor from /RES to +5V.
Without that pullup resistor, I think that /RES won't be able to reach logic HIGH level, so the CPU won't come out of a RESET.
Would suggest to connect the two LEDs to A14 and A15 instead.
Then to use resistors (maybe 1k ?) for pulling the data bus Bits either to GND or +5V, for faking $EA on the data bus.
Resistors are to limit the current at the CPU data bus pins, just in case the CPU might try to write something on the data bus by accident.
$EA is the NOP instruction (which does nothing but incrementing PC to be placed on the address bus).
If the CPU comes out of a RESET, it first reads the RESET vector (which would be $EAEA),
then starts executing code at $EAEA, the code always will be $EA.
A NOP takes two machine cycles, at 2MHz PHI2 the 6502 is supposed to loop through the 64kB address range ca. 15 times per second,
might probably be slow enough to see the LED on A15 flickering.
Also, when building the computer later, please don't forget to add 100nF ceramic capacitors between GND and +5V at every chip
(including the metal can oscillator which actually is sort of a chip too).