Re: [cc65] quickly getting the adress from somewhere in the code

From: Ullrich von Bassewitz <>
Date: 2004-09-27 20:56:36
On Mon, Sep 27, 2004 at 04:54:07PM +0200, Mats Andrén wrote:
>  - Seeing an address:
>    flepp: .export flepp
>    ...and then turning on "-vm" in the linker and loading and browsing
>    the mapfile (which is then also filled with lots of other
>    information that is not straight to the current point) or checking
>    the labelfile by reloading that file into the texteditor or by using
>    an additional grep command on the labelfile or something.

This is overly complicated.

        .import baz
        foo     = bar*3+baz

        ca65 -g myfile.s

        ld65 --dbgfile myfile.dbg myfile.o myotherfile.o

        grep -w foo myfile.dbg

is sufficient to output the result of any expression. You can place the grep
command into the makefile, so printing the value is more or less automatic.

>  - Seeing what an expression evaluates to:
> this even possible now? As far as I understand, you can only
>    check weather an expressíon evaluates to something specific or not
>    with the ".assert" command? Not what it evaluates to.

See above.

I admit that you do currently need to place an additional grep command in the
makefile, compared to the suggested solution, but how many people must do that
to justify half a day of development work and a change in the object file
format (which would be necessary)? There are features missing from cc65, but
this one is not missing, it is just not as easy to use as expected.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 27 20:56:41 2004

This archive was generated by hypermail 2.1.8 : 2004-09-27 20:56:49 CEST