Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > ca65 global labels
2010-07-07 19:39
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?
2010-07-07 21:29
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.. (?)

2010-07-08 10:56
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.
2010-07-08 16:21
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.
2010-07-08 16:49
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.
2010-07-08 18:13
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.
2010-07-08 21:59
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
2010-07-09 06:16
Radiant

Registered: Sep 2004
Posts: 639
I knew I'd missed something! Thank you!
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Meikel aka ZUX/Sparks
Weetibix
kbs/Pht/Lxt
ΛΛdZ
Fungus/Nostalgia
katon/Lepsi De
Spinball/Excess
Guests online: 103
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.034 sec.