Hi Guys.
Thanks for the feedback.
Yes Jefyll, the arduino is being used as a replacement for ROM (which i don't have programmed yet), but it doesn't have enough pins to read the address bus, so I'm just outputting opcodes into the data bus in a sequence, tick after tick. Since the arduino doesn't know when th e6502 was reading address other than ROM it was causing some bugs.
I ended up using A15 to check if the 6502 is fetching opcodes from ROM. So the arduino wont output opcodes when the 6502 is reading from RAM.
I also connected the SYNC after BigEd and BDD's feedback.
$0000 - $3FFF is mapped to RAM
$4000 - $7FFF is mapped to VIA
$8000 - $FFFF is mapped to ROM(which is not connected yet, arduino is faking it)
Hi Mario. yeah, I'm looking at an ArduinoMega so that I can fully read the 6502 data and address buses.
Im waiting for 2x 74HC595 that I bought online so I can make your Meeprom
Last night I connected the VIA, but it wasn't working.
I went back home and read the potpourri again and forgot that it was mapped to $6000-$600F! I was using $4000-$400F
Tested it again this morning and works perfectly
I wrote a simple sequence of opcodes that stores a value in RAM, increases it by one and have it outputted by the VIA.
Added some LEDs at the port and I can see its working
Next step, get some ROM programmed!
Thanks!