1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-26 21:49:45 +00:00

Add note about label-edit weirdness

This commit is contained in:
Andy McFadden 2020-02-28 16:11:35 -08:00
parent 0bbb307d4e
commit 4155d254c2

View File

@ -900,6 +900,9 @@ namespace SourceGen.WpfGui {
// Seek back to the start of the instruction or data item if the operand points // Seek back to the start of the instruction or data item if the operand points
// into the middle of one. This is *not* the same as the "nearby" search, // into the middle of one. This is *not* the same as the "nearby" search,
// which will traverse multiple items to find a match. // which will traverse multiple items to find a match.
// TODO: this can create a situation where the code list shows FUBAR-1 but we
// edit an earlier label, if the earlier label has a multi-byte format that
// includes the target address. (An example can be found in 2024-ui-edge-cases.)
mEditedLabelOffset = mEditedLabelOffset =
DataAnalysis.GetBaseOperandOffset(mProject, attr.OperandOffset); DataAnalysis.GetBaseOperandOffset(mProject, attr.OperandOffset);
mLabelTargetAddress = mProject.GetAnattrib(mEditedLabelOffset).Address; mLabelTargetAddress = mProject.GetAnattrib(mEditedLabelOffset).Address;