From f3eaf0bc91a3e758ff16545afceb95c1f05db268 Mon Sep 17 00:00:00 2001 From: Corey Vixie Date: Sat, 4 Apr 2020 01:34:19 -0700 Subject: [PATCH] Apparently NLINV doesn't need a static prefix and can be 0x00. Add BK3 selector --- src/instructions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instructions.rs b/src/instructions.rs index 8915cde..a162abf 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -262,6 +262,7 @@ pub enum Command2Selection { Disabled = 0x00, BK0 = 0x10, BK1 = 0x11, + BK3 = 0x13, } #[derive(Copy, Clone)] @@ -684,7 +685,7 @@ impl BK0Command2 { RTNI: u8, ) -> Result { Self::validate(CMD2, || { - Command::new(Self::INVSET as u8).args(&[0x30 | NLINV as u8, RTNI]) + Command::new(Self::INVSET as u8).args(&[NLINV as u8, RTNI]) }) }