Revert "pdp10_opcodes: use BASIC format with separate flag for A_UNUSED insns"

This reverts commit 3f80870025.
This commit is contained in:
Mikael Pettersson
2025-08-13 14:11:29 +02:00
parent 6fd5956c8c
commit 1e92b66d9c
2 changed files with 3 additions and 2 deletions

View File

@@ -203,7 +203,6 @@
%% the first word, and the A_OPCODE(00) EXTENDED format for the second word.
, high13 :: 0..((1 bsl 13) - 1)
, format :: pdp10_insn_format()
, a_unused = false :: boolean()
, e_unused = false :: boolean()
, extended = false :: boolean()
, models :: pdp10_cpu_models()

View File

@@ -217,11 +217,13 @@ high13_keys(High13, Shift, Value, Keys) ->
-define(A_OPCODE(OPCODE15), high13 = (OPCODE15) bsr 2, format = ?PDP10_INSN_A_OPCODE).
-define(A_NONZERO(OPCODE9), high13 = (OPCODE9) bsl 4, format = ?PDP10_INSN_A_NONZERO).
-define(IO(OPCODE15), high13 = (OPCODE15) bsr 2, format = ?PDP10_INSN_IO).
-define(A_UNUSED(OPCODE9), ?BASIC(OPCODE9), a_unused = true).
-define(E_UNUSED(Opcode), Opcode, e_unused = true).
-define(SECTION_ZERO(Opcode), Opcode, section0 = true).
-define(SECTION_NONZERO(Opcode), Opcode, section0 = false).
%% A_UNUSED is shorthand for A_OPCODE with the opcode bits in A set to zero.
-define(A_UNUSED(OPCODE9), high13 = (OPCODE9) bsl 4, format = ?PDP10_INSN_A_OPCODE).
%% The .priority field is used to disambiguate lookups when a key maps to
%% multiple descriptors, and the models are not mutually exclusive. This
%% matters mostly for disassembly, i.e. insn_from_high13/4.