[MIGRATED] [PATCH 10/81] more

NOTE: auto-magically re-imported by HAL 9000
HASH: 3993d07d66 (original)
This commit is contained in:
Jonathan Campbell
2020-06-01 19:38:43 -07:00
committed by aybe
parent 06900a30b6
commit d79aaa7029

View File

@@ -290,3 +290,19 @@ define register map "sreg" {
/* no index 7 */
}
define encoding "mrm" {
description "mod/reg/rm field as encoded in instruction";
type uint8_t;
subset "mod" bit range(7:6);
subset "reg" bit range(5:3);
subset "rm" bit range(2:0);
}
define encoding "sib" {
description "scale/index/base field as encoded in instruction";
type uint8_t;
subset "scale" bit range(7:6);
subset "index" bit range(5:3);
subset "base" bit range(2:0);
}