mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-03-10 04:44:31 +00:00
Revert "pdp10_opcodes: use BASIC format with separate flag for A_UNUSED insns"
This reverts commit 3f80870025.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user