Codes for Operand Addressing Method; See Intel Vol. 2, Appendix A.2.1
This is an ordinary defenum.
Function:
(defun addressing-method-code-p (x) (declare (xargs :guard t)) (or (eq x 'a) (eq x 'b) (eq x 'c) (eq x 'd) (eq x 'e) (eq x 'f) (eq x 'g) (eq x 'h) (eq x 'i) (eq x 'j) (eq x 'rb) (eq x 'mb) (eq x 'k-reg) (eq x 'k-vex) (eq x 'k-r/m) (eq x 'k-evex) (eq x 'l) (eq x 'm) (eq x 'n) (eq x 'o) (eq x 'p) (eq x 'q) (eq x 'r) (eq x 's) (eq x 'u) (eq x 'v) (eq x 'w) (eq x 'x) (eq x 'y)))
Theorem: type-when-addressing-method-code-p
(defthm type-when-addressing-method-code-p (implies (addressing-method-code-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)