Re: [cc65] Using CA65 as a stand-alone assembler

From: Johannes Braun <hannenz1freenet.de>
Date: 2007-10-31 13:21:12
Benjamin Bahnsen wrote:
> Hi!
>
> I finally found the time to continue the work on some projects on the 
> C64, i never finished. For some of them I do not need the C compiler, 
> only the assembler. I am wondering if the assembler can be used to 
> simply create compiled binaries. It has a lot more features than Dasm, 
> which i do not want to miss. Currently i make use of the .org control 
> command and create lst-files which I parse row by row for memory 
> addresses and bytes. This is quite easy. I just have to stop if i find 
> a "rr" byte or come over a memory location, which has already been 
> read before.
> I know that this is not the intended way to make use of CA65, but it 
> works good so far. Nevertheless it would be nice to have a more common 
> way to create binaries. Does someone have an idea? I was thinking of 
> modifying CA65 to add a switch, which generates a binary (if possible).
>  
> Best regards,
>  Benjamin
>  
I do it as this:

test.s:

    .word *+2

loop
    inc $d020
    jmp loop


> cl65 -o test.prg -t c64 test.s  -t none --start-addr 0x7fe

just give the load address as .word statement (.word *+2) and link with
start-address minus two.


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Oct 31 13:21:23 2007

This archive was generated by hypermail 2.1.8 : 2007-10-31 13:21:26 CET