-ca65html converts assembler source files written for use with the / crossassembler into HTML. It is a standalone
-tool written in Perl, and as such it does not understand the structure of
+tool written in PERL; and as such, it does not understand the structure of
assembler sources in the same depth as ca65 does, so it may fail in very rare
-cases. In all other cases it generates very nice output.
+cases. In all other cases, it generates very nice output.
@@ -36,7 +36,7 @@ The HTML converter accepts the following options:
Usage: ca65html [options] file ...
Options:
--bgcolor c Use background color c instead of #FFFFFF
- --colorize Colorize the output (generates non standard HTML)
+ --colorize Add color highlights to the output
--commentcolor c Use color c for comments instead of #B22222
--crefs Generate references to the C source file(s)
--ctrlcolor c Use color c for directives instead of #228B22
@@ -67,28 +67,23 @@ Here is a description of all the command line options:
@@ -233,26 +228,22 @@ cases.
Since ca65html does not really parse the input, but does most of its work
applying text patterns, it doesn't know anything about scoping and advanced
-features of the assembler. This means that it may miss a label may choose the
-wrong color for an item in rare cases. Since it's just a tool for displaying
-sources in a nice form, I think that's ok. Anyway, if you find a conversion
-problem, you can send me a short piece of example input code. If possible, I
-will fix it.
+features of the assembler. This means that it might miss a label. And, it
+might choose the wrong color for an item, in rare cases. Because it's just a
+tool for displaying sources in a nice form, I think that's OK. Anyway, if you
+find a conversion problem, you can send me a short piece of example input code.
+If possible, I will fix it.
-While having colors in the output looks really nice, it has two drawbacks:
+While having colors in the output looks really nice, it has one drawback:
-ca65html is (C) Copyright 2000-2003 Ullrich von Bassewitz. For its use the
+ca65html is (c) Copyright 2000-2007 Ullrich von Bassewitz. For its use, the
following conditions apply:
This software is provided 'as-is', without any expressed or implied
diff --git a/src/ca65html/ca65html b/src/ca65html/ca65html
index 9bca799d9..521c5421c 100755
--- a/src/ca65html/ca65html
+++ b/src/ca65html/ca65html
@@ -1,7 +1,7 @@
#!/usr/bin/perl
###############################################################################
# #
-# main.c #
+# ca65html #
# #
# Convert a ca65 source into HTML #
# #
@@ -36,10 +36,10 @@
# Things currently missing:
#
-# - Scoping with .proc/.endproc
+# - Scoping with .proc/.endproc, .scope/.endscope, .enum/.endenum,
+# .struct/.endstruct, .union/endunion, .repeat/.endrep, .local
# - .global is ignored
-# - .constructor/.destructor/.condes dito
-# - .ignorecase is ignored, labels are always case sensitive
+# - .case is ignored, labels are always case-sensitive
# - .include handling (difficult)
# - The global namespace operator ::
#
@@ -92,10 +92,7 @@ my $TextColor = "#000000"; # Text color
my $Verbose = 0; # Be quiet
# Table used to convert the label number into names
-my @NameTab = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K",
- "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
- "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6",
- "7", "8", "9");
+my @NameTab = ('A' .. 'Z', '0' .. '9');
@@ -147,7 +144,7 @@ sub GetOutName {
}
}
-# Remove illegal characters from a string
+# Translate some HTML characters into harmless names.
sub Cleanup {
my $S = shift (@_);
$S =~ s/&/&/g;
@@ -246,15 +243,13 @@ sub DocFooter {
my $Today = localtime;
# Print
- print $OUT "";
+ print $OUT "
\n";
print $OUT "$Name; generated on $Today by ca65html
\n";
print $OUT "uz@cc65.org\n";
- print $OUT "\n";
- print $OUT "