aboutsummaryrefslogtreecommitdiff
path: root/test/protected_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/protected_mode/mod.rs')
-rw-r--r--test/protected_mode/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs
index 8749935..185e98d 100644
--- a/test/protected_mode/mod.rs
+++ b/test/protected_mode/mod.rs
@@ -948,6 +948,16 @@ fn test_mov() {
test_display(&[0x0f, 0x97, 0xc8], "seta al");
test_display(&[0x0f, 0x97, 0x00], "seta [eax]");
test_display(&[0x0f, 0x97, 0x08], "seta [eax]");
+ test_display(&[0xd6], "salc");
+ test_display(&[0x8e, 0x00], "mov es, [eax]");
+ // cs is not an allowed destination - would #ud on execution
+ test_display(&[0x8e, 0x08], "mov cs, [eax]");
+ test_display(&[0x8e, 0x10], "mov ss, [eax]");
+ test_display(&[0x8e, 0x18], "mov ds, [eax]");
+ test_display(&[0x8e, 0x20], "mov fs, [eax]");
+ test_display(&[0x8e, 0x28], "mov gs, [eax]");
+ test_invalid(&[0x8e, 0x30]);
+ test_invalid(&[0x8e, 0x38]);
}
#[test]