about summary refs log tree commit diff stats
path: root/subx/031check_operands.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-01-05 01:07:37 -0800
committerKartik Agaram <vc@akkartik.com>2019-01-05 01:07:37 -0800
commit2eb174d697df06b303c45fb145b1434305a6ed5e (patch)
tree8a362f4369975737694cb2d063eabc1754a225fe /subx/031check_operands.cc
parentaa96ac23a626310242684d0ab510d0df358af179 (diff)
downloadmu-2eb174d697df06b303c45fb145b1434305a6ed5e.tar.gz
4908
Fix CI.

a) Update canonical binaries.
b) Fix an out-of-bounds access in `clear-stream`. This also required supporting
   a new instruction in `subx run` to load an imm8 into rm8.
Diffstat (limited to 'subx/031check_operands.cc')
-rw-r--r--subx/031check_operands.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index 1038bca9..4fd500fa 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -228,6 +228,7 @@ void init_permitted_operands() {
   //  imm32 imm8  disp32 |disp16  disp8 subop modrm
   //  0     1     0      |0       0     1     1
   put(Permitted_operands, "c1", 0x23);  // combine
+  put(Permitted_operands, "c6", 0x23);  // copy
 
   //// Class P: op, ModR/M, subop (not r32) and imm32
   //  imm32 imm8  disp32 |disp16  disp8 subop modrm