First of all I apologize if the question that I will ask is very simple. I'm working on a personal project to assemble a 6502 PC.
The question is: I currently use the EEPROM AT28C256 directly connected to the 6502 processor. Is it addressing from 0x00000 to 0x07FFF correct?
How do I have 6502 read the FFFC and FFFD reset vectors?
My code is:
kernel.cfg
{
ROM: start=$8000, size=$8000, type=ro, define=yes, fill=yes, file=%O;
}
SEGMENTS
{
CODE: load=ROM, type=ro;
VECTORS: load=ROM, type=ro, offset=$7ffa;
}
Code: Select all
.setcpu "6502"
.segment "VECTORS"
.word loop
.word loop
.word loop
.code
loop: lda #$12
jmp loop
Thanks