Hi! On Thu, Nov 02, 2006 at 01:11:31PM +0100, Sebastian Gutsfeld wrote: > but this program just clears the screen and shows me the ready prompt. I > think my problem must be really basic to you all, but since I am a real > newbie when it comes to assembler and C64 programming I hope you can > explain me what's wrong. There are several problems: The linker does not prepend the load address in the resulting binary. You have to do this by adding a word in the source and adjusting the load&run addresses in the config. ----[ sid_player_ca65.s ] .export _main .segment "PRG" .addr _main _main: lda #$00 [...] In addition to that, the memory areas are written to the output file in the order in which they're defined in the config. And the segments are also written in this order. So a (hopefully correct) config would be: ----[ c64.cfg ] MEMORY { [...] PRGDATA: start = $07FE, size = $0B02, file = %O, fill = yes, define = yes; SIDDATA: start = $1000, size = $1000, file = %O, define = yes; } SEGMENTS { [...] PRG: load = PRGDATA, type = ro, define = yes; SID: load = SIDDATA, type = ro, define = yes; } Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- 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 Nov 2 13:21:04 2006
This archive was generated by hypermail 2.1.8 : 2006-11-02 13:21:06 CET