| |
Radiant
Registered: Sep 2004 Posts: 639 |
ca65 global labels
Le annoying.
From the ld65 manual:
-Ln
This option allows you to create a file that contains all
global labels and may be loaded into VICE emulator using
the ll (load label) command. You may use this to debug
your code with VICE. Note: Older versions had some bugs
in the label code. If you have problems, please get the
latest VICE version.
However, I can't get it to output anything but the explicitly .exported labels; all other labels are ignored, global or not. Is there any sensible way around this? |
|
| |
Devia
Registered: Oct 2004 Posts: 401 |
uhm... I'm using ld65 2.13.1 at the moment and doing something like:
ld65.exe -C c64.lcf -m demo.map -Ln demo.lbl -L "..\MyLibs" -o demo.prg nakedchicks.o wickedsplits.o groovysids.o drwlr00tz.lib
my code label usage is something like
.import FOOD
.export EXCREMENT
.proc Eat
lda FOOD
woo eor Sack
sta EXCREMENT
lsr
bne w00
.endproc
Sack .byte 23
Seems to work as it should for me, but I do remember having some weirdness in the labels from time to time in the past. ...And I seem to remember that vice won't load label files with CAPS in the filename.. (?)
|
| |
Radiant
Registered: Sep 2004 Posts: 639 |
Devia: Yes, but there you explicitly export the label in question. According to the documentation, all global labels, exported or not, should be output. |
| |
Devia
Registered: Oct 2004 Posts: 401 |
No, what I mean is that all the labels in this example gets listed properly in the demo.lbl file.
|
| |
Radiant
Registered: Sep 2004 Posts: 639 |
Devia: Cool. Doesn't work for me (ld65 2.12.0). Will upgrade and see if there's any difference. |
| |
Radiant
Registered: Sep 2004 Posts: 639 |
Nope, no difference. Still only see the exported labels in the labels file.
Edit: Oh, and my ld65 options are basically identical to yours. |
| |
Devia
Registered: Oct 2004 Posts: 401 |
ahem.. did you forget to add debug info to the object files?
You need the -g option on ca65 |
| |
Radiant
Registered: Sep 2004 Posts: 639 |
I knew I'd missed something! Thank you! |