CA65 disassembling / reassembling question.
Page 1 of 1

Author:  Flavioweb [ Tue Jun 12, 2007 6:31 am ]
Post subject:  CA65 disassembling / reassembling question.

I'm trying to dissasemble and then re-assemble with "da65" and "ca65" a code for C64... I find this one:

1EFC ldx $0a
1EFE sta $3490,x
1F01 sta $1F2A
1F29 lda #$fb

da65 disassembled it:

L1EFC:  ldx     $0A
        lda     L3490,x
        sta     L1F2A
        inc     $0A
        lda     $0A
        cmp     #$28
        bne     L1F10
        lda     #$00
        sta     $0A
L1F10:  lda     #$DB
        sta     $07F8
        lda     #$D4
        sta     $07F9
        lda     #$D5
        sta     $07FA
        lda     #$D6
        sta     $07FB
        lda     #$D7
        sta     $07FC
        lda     #$FB

so when i try to recompile it, i miss the "L1F2A" reference because i declared as "code" this portion of memory...

How can i do recompile correctly the auto-reference "L1F2A"?

Can i try with something like:
AR1:  sta     AR1+$29


There is a mode to make this automated during the disassembling process?

Author:  MagerValp [ Tue Jun 12, 2007 9:15 am ]
Post subject:  Re: CA65 disassembling / reassembling question.

Ah, yeah, it's a bug in da65 2.11 (and older). It's fixed in the CVS snapshot: ... /snapshot/

Author:  Flavioweb [ Tue Jun 12, 2007 1:11 pm ]
Post subject: 

Thanks a lot !!!
I have just disassembled and reassembled an old intro...

Now i can work on the more sofisticated roms...

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group