Re: [cc65] c64 binaries without crt0.s

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-29 18:11:44


On Wed, Oct 29, 2003 at 05:59:54PM +0100, MagerValp wrote:
> How do I assemble C64 binaries without crt0.s? cl65 -t c64 -C
> autostart.cfg autostart.s b0rks, and -t none doesn't prepend a load
> address.

If you don't use crt0.s, there will never be a load address, because the load
address is regular user data and not supplied by the linker. You will have to
add something like

        .addr   *+2             ; Load address

to the start of your code. Then you can use

        ca65 -t c64 autostart.s
        ld65 -C autostart.cfg autostart.o

to generate the binary.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-29 18:11:56 CET