It is currently Wed May 14, 2025 10:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 12, 2007 5:31 am 
Offline

Joined: Sun Jun 10, 2007 12:29 pm
Posts: 4
I'm trying to dissasemble and then re-assemble with "da65" and "ca65" a code for C64... I find this one:

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


da65 disassembled it:

Code:
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:
Code:
AR1:  sta     AR1+$29

?

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2007 8:15 am 
Offline

Joined: Sat Oct 14, 2006 8:30 am
Posts: 140
Ah, yeah, it's a bug in da65 2.11 (and older). It's fixed in the CVS snapshot:

http://www.cc65.org/cgi-bin/ftp-portal. ... /snapshot/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 12, 2007 12:11 pm 
Offline

Joined: Sun Jun 10, 2007 12:29 pm
Posts: 4
Thanks a lot !!!
I have just disassembled and reassembled an old intro...

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group