From 9e82ff8b88a091908d54f70763a5bf4197afc147 Mon Sep 17 00:00:00 2001
From: Andy McFadden
Date: Mon, 22 Apr 2024 15:07:54 -0700
Subject: [PATCH] Make label files look more like cc65 output
The cc65 docs say VICE labels start with '.'. Also, output local
labels prefixed with '@', per ca65 convention. The default output
file is now "labels.lbl".
Added some minimal documentation.
(issue #151)
---
SourceGen/LabelFileGenerator.cs | 10 +++++++++-
SourceGen/MainController.cs | 4 ++--
SourceGen/Symbol.cs | 1 +
docs/sgmanual/codegen.html | 9 ++++++++-
docs/sgmanual/index.html | 1 +
5 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/SourceGen/LabelFileGenerator.cs b/SourceGen/LabelFileGenerator.cs
index 7bfdfec..b70ad1d 100644
--- a/SourceGen/LabelFileGenerator.cs
+++ b/SourceGen/LabelFileGenerator.cs
@@ -70,7 +70,15 @@ namespace SourceGen {
// VICE format is "add_label
-Use File > Export to open the export dialog. You have several
+
Use File > Export to open the export dialog. You have several
options:
- Include only selected lines. This allows you to choose between
@@ -425,6 +425,13 @@ will be written to the same directory.
All output uses UTF-8 encoding. Filenames of HTML files will have '#'
replaced with '_' to make linking easier.
+
+Generating Label Files
+Some debuggers allow the import of labels associated with addresses.
+To generate such a file, use File > Generate Label File.
+Select the desired output format (currently only VICE label commands
+are supported), and whether or not to include auto-generated labels.
+