From 57a03d96ff5c73d35fcff7ed1b8385f5182a32ba Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 3 Feb 2020 00:27:22 -0800 Subject: a displacement size of 0 in RegDerefDisp20Abs is possible and correct specifically when selecting a register pair, rather than a displacement. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 98c53c1..7225fe7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2122,6 +2122,7 @@ fn Operand_RegDerefDisp20Abs>(code: u8, inst: &mut Instruct }; match imm_size { + 0 => {} 1 => { inst.dispabs = bytes.next().ok_or(DecodeError::ExhaustedInput)? as u16; inst.length += 1; -- cgit v1.1