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

From: <silverdr1wfmh.org.pl>
Date: 2010-05-13 19:56:58
On 2010-05-13, at 19:00, Payton Byrd wrote:

> I want to have an assembler program that I can compile and link that  
> starts at $1400 and only contains the code in my .S file.  Reading  
> up on the ld65 docs, it appears I should do the following:
>
> ld65 -t none -S $1400 -o outputfile input.s

And what does ld65 says if you treat it with source files?

>
> However, when I load outputfile on the C64 using load"outputfile", 
> 8,1 and then go to the monitor, the code does not exist at $1400,  
> there is simply zeroes as far as the eye can see.  Here's the code  
> I'm trying to compile.
>
> .word $1400
>
> 		LDA #$48
> 		JSR $FFD2
> 		LDA #$49
> 		JSR $FFD2
> 		LDA #$0D
> 		JSR $FFD2
> 		JSR $FFCF
> 		BRK
>
> Please help.

$ ca65 input.s
$ ld65 -t none -S $1400 -o outputfile input.o

Works.

-- 
SD!
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu May 13 19:57:08 2010

This archive was generated by hypermail 2.1.8 : 2010-05-13 19:57:10 CEST