Re: [cc65] Question about linking assembler to specific address

From: Greg King <greg.king41verizon.net>
Date: 2010-05-17 02:13:27
From: silverdr; on Thurs., May 13, 2010; at 01:56 PM -0400
> >
> > .word $1400
> >
> > LDA #$48
> > JSR $FFD2
> > LDA #$49
> > JSR $FFD2
> > LDA #$0D
> > JSR $FFD2
> > JSR $FFCF
> > BRK
>
> $ ca65 input.s
> $ ld65 -t none -S $1400 -o outputfile input.o
>
> Works.

You must use a start address that is two bytes _lower_ because LD65 sees
the load address as a part of the code:

$ ld65 -t none -S $13fe -o outputfile input.o

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 17 02:14:38 2010

This archive was generated by hypermail 2.1.8 : 2010-05-17 02:14:41 CEST