From 6f99c2ffccfec159e359f259abcbd6100045cb1a Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Wed, 4 Aug 2021 12:24:16 +0200 Subject: [PATCH] Moved Condition-Code stuff to separate file, added reverse mapping function. Reworked Instruction Documentation provider, now shows condition codes. Cosmetics: Removed MutableList information where unnecessary --- README.md | 1 + build.gradle | 1 + .../plugins/m68k/asm/ConditionCode.kt | 198 ++++++++++++++++++ .../intellij/plugins/m68k/asm/M68kIsa.kt | 123 ----------- .../M68kInstructionDocumentationProvider.kt | 78 +++++-- .../M68kRegisterFlowDocumentationProvider.kt | 6 +- .../plugins/m68k/psi/M68kLookupUtil.kt | 16 +- .../plugins/m68k/psi/M68kPsiImplUtil.kt | 2 +- .../m68k/refs/M68kChooseByNameContributor.kt | 2 +- .../refs/M68kGlobalLabelSymbolReference.kt | 2 +- .../m68k/refs/M68kLocalLabelReference.kt | 2 +- .../plugins/m68k/refs/M68kMacroReference.kt | 2 +- ...68kInstructionDocumentationProviderTest.kt | 54 ++++- 13 files changed, 322 insertions(+), 165 deletions(-) create mode 100644 src/main/java/de/platon42/intellij/plugins/m68k/asm/ConditionCode.kt diff --git a/README.md b/README.md index d4c7707..3b9d92c 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ make it work with JUnit 5. Feel free to use the code (in package ```de.platon42. - Bugfix: Minor fix for `andi/eori/ori to ccr` which were not byte sized in ISA. - Bugfix: Added alternate condition code tests `HS (=CC)` and `LO (=CS)`. - Performance: Optimized mnemonic lookup. +- Enhancement: Reworked Instruction Documentation provider, now shows condition codes. ### V0.4 (03-Aug-21) diff --git a/build.gradle b/build.gradle index 889afa6..6ef5c2f 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,7 @@ patchPluginXml {
  • Bugfix: Minor fix for `andi/eori/ori to ccr` which were not byte sized in ISA.
  • Bugfix: Added alternate condition code tests HS (=CC) and LO (=CS).
  • Performance: Optimized mnemonic lookup. +
  • Enhancement: Reworked Instruction Documentation provider, now shows condition codes.

    V0.4 (03-Aug-21)