Page 1 of 1
trying to target classic 6502 arcade machines with xa65
Posted: Mon Aug 27, 2018 3:43 pm
by nitrofurano
hi everyone! as i tried some experiences on over 100 z80-based classic arcade machines (using mame emulator), i started to do the same on 6502-based ones - for now i'm just trying to "poke" something in the display area, but nothing appears there - do anyone can see what is happening there? thanks in advance!
https://drive.google.com/file/d/1CRMMU7 ... G2VXy/view
Re: trying to target classic 6502 arcade machines with xa65
Posted: Tue Aug 28, 2018 12:10 am
by leepivonka
I'm not familiar with MAME, but I'm wondering if you need to arrange for execution to get to your code at $1000.
A hardware Z80 coming out of reset starts executing at $0000, so usually there is ROM at that address with code to run.
A hardware 6502 coming out of reset starts executing where the reset vector at $FFFC & $FFFD points, so usually there is ROM at those addresses containing the vectors & code to run.
Do you need a constant word at $FFFC initialized to $1000?
Re: trying to target classic 6502 arcade machines with xa65
Posted: Tue Aug 28, 2018 1:22 pm
by nitrofurano
thanks! i’m really a 6502 newbie, and i had no idea what these vectors are - they are actually mentioned at
https://raw.githubusercontent.com/mamed ... circus.cpp - and saying that the last rom placed at $1E00 is mirrored at $FE00 as well, having these vector bytes - now it seems to run fine! thanks again!
