Re: [cc65-devel] ONCE segment now compulsory for asm?
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: Marc 'B. R. <ma...@ri...> - 2016-05-17 08:10:34
|
On 17/05/16 06:09, Stefan Wessels wrote: > In a file called main.asm I have only this: > .proc main > lda #65 > jmp $ffd2 > .endproc > > cl65 --version > cl65 V2.14 - Git a13284a > > 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. You are using the linker config aimed at C here and not the one aimed at assembler programs. See https://cc65.github.io/doc/c64.html#s4 For an assembler program with BASIC stub you need:: cl65 -t c64 -C c64-asm.cfg -u __EXEHDR__ main.asm -o main.c64 Ciao, Marc 'BlackJack' Rintsch -- “The last good thing written in C was Franz Schubert's Symphony number 9.” -- Michael Hodous |