[cc65] da65 .org

From: MagerValp <MagerValp1cling.gu.se>
Date: 2004-04-16 16:14:28
I'm disassembling the Final Chesscard roms, and noticed that da65
doesn't have any support for relocated code. How about

range {
      name "far_8000";
      start $8669;
      end $8679;
      type reloccode;	# set type to relocated code
      addr $0100;	# set actual address
};

I'm not quite sure how you'd handle labels inside relocated code,
especially when there are multiple labels for a certain address, but
I'm sure something could be figured out.

Another feature I'd like to see is the ability to add comments from
the info file:

label {
	name "cartinit";
	addr $8009;
	comment "Cartridge initialization";
}

Another problem is with address tables. I've defined the range:

range {
      start $a091;
      end $a09a;
      type addrtable;
};

but the following code:

        asl     a                               ; 9FB9 0A
        tay                                     ; 9FBA A8
        lda     LA091,y                         ; 9FBB B9 91 A0
        tax                                     ; 9FBE AA
        lda     LA092,y                         ; 9FBF B9 92 A0

breaks up the table like this:

LA091:  .byte   $F6                             ; A091 F6
LA092:  .word   L119F                           ; A092 9F 11
        .word   L2AA0                           ; A094 A0 2A
        .word   L41A0                           ; A096 A0 41
        .word   L5BA0                           ; A098 A0 5B
        .byte   $A0                             ; A09A A0

I have to add a label:

label {
      addr $a091;
      size 2;
      name "noidea";
};

to get a good table:

noidea: .word   L9FF6                           ; A091 F6 9F
        .word   LA011                           ; A093 11 A0
        .word   LA02A                           ; A095 2A A0
        .word   LA041                           ; A097 41 A0
        .word   LA05B                           ; A099 5B A0

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Apr 16 16:15:04 2004

This archive was generated by hypermail 2.1.8 : 2004-04-16 16:15:10 CEST