Re: [cc65-devel] ONCE segment now compulsory for asm?
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: Oliver S. <ol...@we...> - 2016-05-17 08:17:11
|
Hi Stefan, cl65 -tc64 main.asm -o main.c64 > ld65: Warning: D:\Users\swessels\cc65\cfg/c64.cfg(40): Segment `STARTUP' > does not exist > ld65: Warning: D:\Users\swessels\cc65\cfg/c64.cfg(40): Segment `ZPSAVE' > does not exist > > produces a working main.c64 with a basic stub (sys 2061). I am a bit > surprised that the basic stub was added without me specifying anything such > as .autoimport or a startup segment, but in this case, it's actually what I > want and nice and user friendly. > Hm, I'd say that the the two warning are already a pretty clear sign that you are using cc65 in the "wrong" way. > cl65 -tc64 main.asm -o main.c64 > ld65: Warning: d:\users\swessels\bin\cc65\cfg/c64.cfg(45): Segment > `STARTUP' does not exist > ld65: Warning: d:\users\swessels\bin\cc65\cfg/c64.cfg(45): Segment `INIT' > does not exist > ld65: Warning: d:\users\swessels\bin\cc65\cfg/c64.cfg(45): Segment `ONCE' > does not exist > ld65: Error: d:\users\swessels\bin\cc65\cfg/c64.cfg(15): Start address of > memory area `BSS' is not constant > Yep. Was never expected to work and now happens to actually break. > Perhaps the ONCE segment, or __ONCE_RUN__ could be inferred if it wasn't > explicitly specified? > No. cl65 -t c65 <...> is to be used for C programs, not assembly programs. Check out http://cc65.github.io/doc/c64.html#ss4.2 Regards, Oliver |