[cc65] Question about linking assembler to specific address

From: Payton Byrd <plbyrd1gmail.com>
Date: 2010-05-13 19:00:53
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

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.

-- 
Payton Byrd
<http://www.paytonbyrd.com>
<http://it.toolbox.com/blogs/paytonbyrd>

----------------------------------------------------------------------
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:01:29 2010

This archive was generated by hypermail 2.1.8 : 2010-05-13 19:01:31 CEST