about summary refs log tree commit diff stats
path: root/subx/031check_operands.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-22 23:19:39 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-22 23:19:39 -0700
commit7d4e351a0d1e3c4e71b58d3218b4e6b833f542f2 (patch)
tree8f8b8e62848b76ce5debf3ef89ad6f0e1c381de8 /subx/031check_operands.cc
parent2b36eee9b13eb16fb2e4b05d7e26f6d09f431912 (diff)
downloadmu-7d4e351a0d1e3c4e71b58d3218b4e6b833f542f2.tar.gz
4503
Include LEA (load effective address) in the SubX subset of x86 ISA.
Diffstat (limited to 'subx/031check_operands.cc')
-rw-r--r--subx/031check_operands.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index 5f99f7b0..f24eb62c 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -214,6 +214,8 @@ void init_permitted_operands() {
   put(Permitted_operands, "8b", 0x01);
   // swap
   put(Permitted_operands, "87", 0x01);
+  // lea
+  put(Permitted_operands, "8d", 0x01);
   // pop
   put(Permitted_operands, "8f", 0x01);