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

From: Mats Andrén <matan3251student.liu.se>
Date: 2004-09-27 00:52:14
Hello!

When switching to cc65/ca65 from other crosscompilers/assemblers that
did not have a linker I found out that I was really missing a feature
from the ones I used before. What I want to be able to do is to just
throw something like this into the middle of an assembler source.

.linkerprint *

..or even something like:

.linkerprint "unexpected problem located at: ", *

...and then having the adress of '*' outputed to the console while
linking. I often use that to be able to dive directly into the
memory of my c64 to check what is really in there, when things does
not seem to be the way I expect. (I always transfer my binaries
directly into the c64-mem while coding on the PC. Thanks groepaz! ;)
Now I understand that the assembler has no clue where in memory things
will end up (so obviously ".out *" does not work). I noticed the
.assert-command which almost does what I want to do since the linker
actually outputs something, except for the fact that it also only
outputs strings (and constants too perhaps, don't remember). Having to
export a label, and actually use it somehwere, to be able to make it
appear in the .map-file does not really feel like convenient solution.

If it would work with other kinds of expressions involving adresses
not known until the linking phase would of course be nice too, but not
needed that much.

Perhaps I am the only one that really wants such a feature? Just
wanted to let you know. I pray to jesUZ someone will hear my cry! :)

Except for this, I think ca65/ld65 has everything I could ask for.
Thanks for a lot for an impressing system! :)

/Mats

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 27 00:50:54 2004

This archive was generated by hypermail 2.1.8 : 2004-09-27 00:51:02 CEST