diff options
author | iximeow <me@iximeow.net> | 2019-04-17 18:20:16 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 17:28:07 -0800 |
commit | 00aa1ab7515f7dee7dcdfc28b3f942c30671677a (patch) | |
tree | af74e8b25d37244872759ccfb04b36d117af4912 | |
parent | 9d68385f5c226476e553507d523f3277de53e77e (diff) |
found some decode errors
-rw-r--r-- | test/test.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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], |