diff --git a/SourceGen/RuntimeData/ExportTemplate.html b/SourceGen/RuntimeData/ExportTemplate.html index 44cef74..068a318 100644 --- a/SourceGen/RuntimeData/ExportTemplate.html +++ b/SourceGen/RuntimeData/ExportTemplate.html @@ -13,6 +13,7 @@ +

back to project page

$ProjectName$ Disassembly

diff --git a/SourceGen/Tools/ApplesoftToHtml.cs b/SourceGen/Tools/ApplesoftToHtml.cs index b693739..10c091e 100644 --- a/SourceGen/Tools/ApplesoftToHtml.cs +++ b/SourceGen/Tools/ApplesoftToHtml.cs @@ -45,18 +45,22 @@ namespace SourceGen.Tools { * All values are little-endian. Numbers are stored as characters. */ + /// + /// List of Applesoft BASIC tokens. '<', '>', and '&' have been replaced + /// with their HTML-escape strings. + /// private static readonly string[] TOKENS = new string[128] { "END", "FOR", "NEXT", "DATA", "INPUT", "DEL", "DIM", "READ", "GR", "TEXT", "PR#", "IN#", "CALL", "PLOT", "HLIN", "VLIN", "HGR2", "HGR", "HCOLOR=", "HPLOT", "DRAW", "XDRAW", "HTAB", "HOME", "ROT=", "SCALE=", "SHLOAD", "TRACE", "NOTRACE", "NORMAL", "INVERSE", "FLASH", "COLOR=", "POP", "VTAB", "HIMEM:", "LOMEM:", "ONERR", "RESUME", "RECALL", - "STORE", "SPEED=", "LET", "GOTO", "RUN", "IF", "RESTORE", "&", + "STORE", "SPEED=", "LET", "GOTO", "RUN", "IF", "RESTORE", "&", "GOSUB", "RETURN", "REM", "STOP", "ON", "WAIT", "LOAD", "SAVE", "DEF", "POKE", "PRINT", "CONT", "LIST", "CLEAR", "GET", "NEW", "TAB(", "TO", "FN", "SPC(", "THEN", "AT", "NOT", "STEP", - "+", "-", "*", "/", "^", "AND", "OR", ">", - "=", "<", "SGN", "INT", "ABS", "USR", "FRE", "SCRN(", + "+", "-", "*", "/", "^", "AND", "OR", ">", + "=", "<", "SGN", "INT", "ABS", "USR", "FRE", "SCRN(", "PDL", "POS", "SQR", "RND", "LOG", "EXP", "COS", "SIN", "TAN", "ATN", "PEEK", "LEN", "STR$", "VAL", "ASC", "CHR$", "LEFT$", "RIGHT$", "MID$", "ERROR", "ERROR", "ERROR", "ERROR", "ERROR", @@ -65,6 +69,7 @@ namespace SourceGen.Tools { }; private const int TOK_REM = 0xb2; + // Text colors. Subtlety is a goal. private Color mDefaultColor = Color.FromArgb(0xff, 0x40, 0x40, 0x40); // Dark Grey private Color mLineNumColor = Color.FromArgb(0xff, 0x40, 0x40, 0x40); // Dark Grey private Color mKeywordColor = Color.FromArgb(0xff, 0x00, 0x00, 0x00); // Black diff --git a/SourceGen/WpfGui/AboutBox.xaml b/SourceGen/WpfGui/AboutBox.xaml index 8e85ec8..bb6eece 100644 --- a/SourceGen/WpfGui/AboutBox.xaml +++ b/SourceGen/WpfGui/AboutBox.xaml @@ -45,7 +45,11 @@ limitations under the License. - +