From 00aa1ab7515f7dee7dcdfc28b3f942c30671677a Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 17 Apr 2019 18:20:16 -0700 Subject: found some decode errors --- test/test.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/test.rs') diff --git a/test/test.rs b/test/test.rs index de70f47..177e748 100644 --- a/test/test.rs +++ b/test/test.rs @@ -91,6 +91,18 @@ fn test_decode_str_ldr() { } #[test] +fn test_decode_misc() { + test_display( + [0x02, 0x00, 0xa0, 0xe3], + "mov r0, 0x2" + ); + test_display( + [0xe8, 0x10, 0x9f, 0xe5], + "ldr r1, [pc, #0x3a0]" + ); +} + +#[test] fn test_decode_pop() { test_decode( [0x04, 0x10, 0x9d, 0xe4], -- cgit v1.1