From d7dbd8d012c55bd9e1035a8c847992f371f22be9 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Sat, 16 Oct 2021 13:40:27 -0700 Subject: [PATCH] Minor tweak to instruction operand editor If you put a value in the "symbol" field of an instruction with an address operand, you're establishing a symbolic reference to a label that may be at a different address than the numeric value of the operand. But if you then hit the "edit label" button, you'll edit the label at the *numeric* reference address, which can be confusing. We now disable the create/edit label button when the format has been set to "symbol". The button is just a short-cut, so disabling it doesn't prevent the user from doing anything. --- SourceGen/WpfGui/EditInstructionOperand.xaml | 2 +- SourceGen/WpfGui/EditInstructionOperand.xaml.cs | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/SourceGen/WpfGui/EditInstructionOperand.xaml b/SourceGen/WpfGui/EditInstructionOperand.xaml index 26a1c9f..2d398ca 100644 --- a/SourceGen/WpfGui/EditInstructionOperand.xaml +++ b/SourceGen/WpfGui/EditInstructionOperand.xaml @@ -169,7 +169,7 @@ limitations under the License.