mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
Update comments
This commit is contained in:
parent
c46afe377e
commit
18994ef772
@ -514,22 +514,15 @@ namespace SourceGen.AsmGen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void OutputString(int offset, string labelStr, string commentStr) {
|
private void OutputString(int offset, string labelStr, string commentStr) {
|
||||||
// Normal ASCII strings are straightforward: they're just part of a .byte
|
// Normal ASCII strings are handled with a simple .text directive.
|
||||||
// directive, and can mix with anything else in the .byte.
|
|
||||||
//
|
//
|
||||||
// For CString we can use .asciiz, but only if the string fits on one line
|
// CString and L8String have directives (.null, .ptext), but we can only use
|
||||||
// and doesn't include delimiters. For L8String and L16String we can
|
// them if the string fits on one line and doesn't include delimiters.
|
||||||
// define simple macros, but their use has a similar restriction. High-ASCII
|
|
||||||
// strings also require a macro.
|
|
||||||
//
|
//
|
||||||
// We might be able to define a macro for DCI and Reverse as well.
|
// We could probably do something fancy with the character encoding options to
|
||||||
|
// make high-ASCII work nicely.
|
||||||
//
|
//
|
||||||
// The limitation on strings with delimiters arises because (1) I don't see a
|
// We might be able to define a macro for DCI and Reverse.
|
||||||
// way to escape them within a string, and (2) the simple macro workarounds
|
|
||||||
// only take a single argument, not a comma-separated list of stuff.
|
|
||||||
//
|
|
||||||
// Some ideas here:
|
|
||||||
// https://groups.google.com/forum/#!topic/comp.sys.apple2.programmer/5Wkw8mUPcU0
|
|
||||||
|
|
||||||
Formatter formatter = SourceFormatter;
|
Formatter formatter = SourceFormatter;
|
||||||
byte[] data = Project.FileData;
|
byte[] data = Project.FileData;
|
||||||
@ -604,12 +597,12 @@ namespace SourceGen.AsmGen {
|
|||||||
|
|
||||||
switch (dfd.FormatSubType) {
|
switch (dfd.FormatSubType) {
|
||||||
case FormatDescriptor.SubType.None:
|
case FormatDescriptor.SubType.None:
|
||||||
// TODO: something fancy with encodings to handle high-ASCII text?
|
// TODO(someday): something fancy with encodings to handle high-ASCII text?
|
||||||
break;
|
break;
|
||||||
case FormatDescriptor.SubType.Dci:
|
case FormatDescriptor.SubType.Dci:
|
||||||
case FormatDescriptor.SubType.Reverse:
|
case FormatDescriptor.SubType.Reverse:
|
||||||
case FormatDescriptor.SubType.DciReverse:
|
case FormatDescriptor.SubType.DciReverse:
|
||||||
// Full configured above.
|
// Fully configured above.
|
||||||
break;
|
break;
|
||||||
case FormatDescriptor.SubType.CString:
|
case FormatDescriptor.SubType.CString:
|
||||||
if (gath.NumLinesOutput == 1 && !gath.HasDelimiter) {
|
if (gath.NumLinesOutput == 1 && !gath.HasDelimiter) {
|
||||||
|
@ -28,10 +28,10 @@ namespace SourceGen.AsmGen {
|
|||||||
///
|
///
|
||||||
/// This code is common to all generators.
|
/// This code is common to all generators.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="project"></param>
|
/// <param name="gen">Reference to generator object (presumably the caller).</param>
|
||||||
/// <param name="formatter"></param>
|
/// <param name="sw">Text output sink.</param>
|
||||||
/// <param name="sw"></param>
|
/// <param name="worker">Background worker object, for progress updates and
|
||||||
/// <param name="worker"></param>
|
/// cancelation requests.</param>
|
||||||
public static void Generate(IGenerator gen, StreamWriter sw, BackgroundWorker worker) {
|
public static void Generate(IGenerator gen, StreamWriter sw, BackgroundWorker worker) {
|
||||||
DisasmProject proj = gen.Project;
|
DisasmProject proj = gen.Project;
|
||||||
Formatter formatter = gen.SourceFormatter;
|
Formatter formatter = gen.SourceFormatter;
|
||||||
|
Loading…
Reference in New Issue
Block a user