[cc65] ca65: Finding out which lines assembled into which addresses

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2005-12-07 19:02:22
Hello,

I have a question with regard to the ca65 assembler.

What is the problem?

I have two types of files here: One file (A) which tells me which
comment to put on a specific address, and one set of files (B) which
assembles to exactly the same output.

Example:

File A contains:

1000 get the address of function ABC
1004 write the pointer to the function ABC into the XYZ vector

File (set) B contains:

      * = $1000
      LDA #<ABC
      LDX #>ABC
      STA XYZ
      STX XYZ+1

(It is a file *set* as the source uses some .include directives.)

Now, I want to modify the file set B to generate something like

      * = $1000
      LDA #<ABC ; get the address of function ABC
      LDX #>ABC
      STA XYZ   ; write the pointer to the function ABC into the XYZ vector
      STX XYZ+1

I thought my best bet would be to assemble to file set B with a listing
file and look into the listing file which memory content is generated by
which file/line in the file set B.

This could be done by processing the input file set and counting the
lines. Nevertheless, I hope the assembler should know the file name and
line number by itself. Thus, I ask myself if it is possible (without too
much work) for ca65 to include that information in the output of the
listing file?

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
http://cbm4win.sf.net/
----------------------------------------------------------------------
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 Dec 7 19:02:51 2005

This archive was generated by hypermail 2.1.8 : 2005-12-07 19:02:53 CET