Add comments to CRT header fields

Also, made some minor source code tweaks.
This commit is contained in:
Andy McFadden committed 2025-12-31 07:39:28 -08:00
1 parent ac93d22eb2
commit fd375fe65a
3 files changed
+48 -8

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ namespace Asm65 {
}
/// <summary>
/// Addressing mode. This uses the same distinctions as Eyes & Lichty, which for
/// Addressing mode. This uses the same distinctions as Eyes &amp; Lichty, which for
/// most purposes has some redundancy (e.g. StackRTI is only ever used with RTI, so
/// in most cases it could be considered Implied).
///
@@ -282,7 +282,7 @@ namespace Asm65 {
/// the Program Bank Register.
/// </summary>
/// <remarks>
/// As noted in Eyes & Lichty, the Absolute addressing mode uses the Data Bank Register
/// As noted in Eyes &amp; Lichty, the Absolute addressing mode uses the Data Bank Register
/// if locating data, or the Program Bank Register if transferring control. When
/// we "LDA symbol" we can only care about the 16-bit value because we can't know what B
/// will hold at run time. When we "JMP symbol" we can either (1) complain if it's in
+8 -6
View File
@@ -113,10 +113,11 @@ namespace Asm65 {
/// <summary>
/// Short descriptions, USA English.
///
/// Text is adapted from instruction summaries in Eyes & Lichty, which are slightly
/// Text is adapted from instruction summaries in Eyes &amp; Lichty, which are slightly
/// shorter than those in the CPU data sheet.
/// </summary>
private static Dictionary<string, string> sShort_enUS = new Dictionary<string, string>() {
private static readonly Dictionary<string, string> sShort_enUS =
new Dictionary<string, string>() {
// 65816 instructions.
{ OpName.ADC, "Add With Carry" },
{ OpName.AND, "AND Accumulator With Memory" },
@@ -276,7 +277,8 @@ namespace Asm65 {
/// <summary>
/// Long descriptions, USA English.
/// </summary>
private static Dictionary<string, string> sLong_enUS = new Dictionary<string, string>() {
private static readonly Dictionary<string, string> sLong_enUS =
new Dictionary<string, string>() {
{ OpName.ADC,
"Adds the accumulator and a value in memory, storing the result in the " +
"accumulator. Adds one if the carry is set."
@@ -765,7 +767,7 @@ namespace Asm65 {
/// <summary>
/// Address mode short descriptions, USA English.
/// </summary>
private static Dictionary<OpDef.AddressMode, string> sAddrMode_enUS =
private static readonly Dictionary<OpDef.AddressMode, string> sAddrMode_enUS =
new Dictionary<OpDef.AddressMode, string>() {
{ OpDef.AddressMode.Abs, "Absolute" },
{ OpDef.AddressMode.AbsInd, "Absolute Indirect" },
@@ -809,7 +811,7 @@ namespace Asm65 {
/// <summary>
/// Cycle modifier descriptions. These are intended to be very terse.
/// </summary>
private static Dictionary<OpDef.CycleMod, string> sCycleMod_enUS =
private static readonly Dictionary<OpDef.CycleMod, string> sCycleMod_enUS =
new Dictionary<OpDef.CycleMod, string>() {
{ OpDef.CycleMod.OneIfM0, "+1 if M=0" },
{ OpDef.CycleMod.TwoIfM0, "+2 if M=0" },
@@ -824,5 +826,5 @@ namespace Asm65 {
{ OpDef.CycleMod.MinusOneIfNoPage, "-1 if 65C02 and not across page" },
{ OpDef.CycleMod.BlockMove, "+7 per byte" },
};
}
}
}