Time for another newbie question.
I just got an Arduino Due with the nice 32 bit MCU and being that I never had a real 6502 circuit running I went and bought a couple G65SC02P-1 chips as well. I wired up all the address bus lines and data bus lines to the Arduino as well as the clock-0 line. I also wired up the interrupts,ready,reset,etc all to high I think. It runs through addresses the current way I have it. Anyway, I've got a LCD display to tell me what the current data bus signal is, address bus signal is and if the CPU is trying to read or write (r/w pin state).
My first test was to just make the data line always output EA (NOP) from the Arduino to the chip, which worked, r/w was always high (read), address would increment every 2 clock cycles (clock from Arduino btw) and the data would always read EA. Very exciting.
My second test however, was to make the data line always output 4C (JMP direct address) to the data line, so the way I saw it it would always be trying to
JMP $4C4C .
I've tried this in emulators and its worked, but when I try it on my rig it outputs the following (first is addr, second is data and third is r/w):
Code:
A9E4 4C R
A9E5 4C R
A9E6 4C R
8C8C 32 W
A9E7 4C R
A9E8 4C R
A9E9 4C R
8C8C 32 W
and so on. There are 3 cycles of 3 continuous addresses, then it tries to write $32 to the address 8C8C. It just goes on forever.
Anyone have any Idea of what is wrong? Or have I just made a terrible mistake?
Heres a link to the arduino code, but I'm not sure its the source of the problem (could be wrong though).
http://pastebin.com/MUxQdjfp