I'm trying to get my code to start at $C000, but my cc65 config file isn't working.. What am I doing wrong?
What is happening is the code is starting at $8000 after explicitly telling the segment to start at $C000 and my vectors are missing at the end of the file. What am I doing wrong?
Code:
MEMORY {
ZP: start = $0, size = $ff, type = rw;
HEADER: start = 0, size = $0010, type = ro, file = %O, fill=yes, fillval=$00;
RAM: start = $0200, size = $0600, type = rw;
ROM: start = $C000, size = $C000, type = ro, file = %O, fill=yes, fillval=$FF;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
BSS: load = RAM, type = bss, define = yes, align = $100;
INESHDR: load = HEADER, type = ro, align = $10;
BANK: load = ROM, type = ro, align = $100;
VECT: load = ROM, type = ro, start = $FFFA;
}
FILES {
%O: format = bin;
}
ZP: start = $0, size = $ff, type = rw;
HEADER: start = 0, size = $0010, type = ro, file = %O, fill=yes, fillval=$00;
RAM: start = $0200, size = $0600, type = rw;
ROM: start = $C000, size = $C000, type = ro, file = %O, fill=yes, fillval=$FF;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
BSS: load = RAM, type = bss, define = yes, align = $100;
INESHDR: load = HEADER, type = ro, align = $10;
BANK: load = ROM, type = ro, align = $100;
VECT: load = ROM, type = ro, start = $FFFA;
}
FILES {
%O: format = bin;
}
What is happening is the code is starting at $8000 after explicitly telling the segment to start at $C000 and my vectors are missing at the end of the file. What am I doing wrong?