From 4155d254c261f3d9f8d1a3773da722d1c9337950 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 28 Feb 2020 16:11:35 -0800 Subject: [PATCH] Add note about label-edit weirdness --- SourceGen/WpfGui/EditInstructionOperand.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SourceGen/WpfGui/EditInstructionOperand.xaml.cs b/SourceGen/WpfGui/EditInstructionOperand.xaml.cs index 94219fe..cd71daf 100644 --- a/SourceGen/WpfGui/EditInstructionOperand.xaml.cs +++ b/SourceGen/WpfGui/EditInstructionOperand.xaml.cs @@ -900,6 +900,9 @@ namespace SourceGen.WpfGui { // 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, // 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 = DataAnalysis.GetBaseOperandOffset(mProject, attr.OperandOffset); mLabelTargetAddress = mProject.GetAnattrib(mEditedLabelOffset).Address;