1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-08 09:08:40 +00:00

Tweak previous

This commit is contained in:
Andy McFadden 2024-07-10 07:56:23 -07:00
parent b913541da4
commit b946207e91

View File

@ -119,7 +119,7 @@ namespace Asm65 {
//
/// <summary>Character position at which operands wrap; 0 == default.</summary>
public int OperandWrapLen { get; set; } = 0;
public int OperandWrapLen { get; set; } = DEFAULT_OPERAND_WRAP_LEN;
/// <summary>Add spaces between bytes in the Bytes column?</summary>
public bool SpacesBetweenBytes { get; set; } = false; // "20edfd" vs. "20 ed fd"
@ -569,8 +569,7 @@ namespace Asm65 {
/// Point at which to wrap long operands, such as strings and dense hex.
/// </summary>
public int OperandWrapLen {
get { return mFormatConfig.OperandWrapLen == 0 ?
DEFAULT_OPERAND_WRAP_LEN : mFormatConfig.OperandWrapLen; }
get { return mFormatConfig.OperandWrapLen; }
}
@ -592,6 +591,9 @@ namespace Asm65 {
} else {
mFullLineCommentDelimiterPlus = mFormatConfig.FullLineCommentDelimiterBase;
}
if (config.OperandWrapLen <= 0) {
config.OperandWrapLen = DEFAULT_OPERAND_WRAP_LEN;
}
// Prep the static parts of the hex dump buffer.
mHexDumpBuffer = new char[73];