Skip to content
Snippets Groups Projects
Commit 3bae3044 authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files
parents a8b5b28b 904b4a0d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# This tests the relative BLX instruction for Thumb-mode
# Github issue: #166
# Author: McLovi9
from keystone import *
import regress
class TestARM(regress.RegressTest):
def runTest(self):
# Initialize Keystone engine
ks = Ks(KS_ARCH_ARM, KS_MODE_THUMB)
# Assemble to get back insn encoding & statement count
encoding, count = ks.asm(b"BLX 0xF4000134",addr=0xF400048A)
# Assert the result
self.assertEqual(encoding, [ 0xFF, 0xF7, 0x54, 0xEE ])
if __name__ == '__main__':
regress.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment