Skip to content
Snippets Groups Projects
Commit 1bf32895 authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files

regress: add AT&T test to x86_call5.py

parent 0861523a
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# Test 'jmp 0' with both X86 Intel & ATT syntax
# Test 'call 5' with both X86 Intel & ATT syntax
# Github issue: #56
# Author: Nguyen Anh Quynh
......@@ -9,6 +9,16 @@ from keystone import *
import regress
class TestX86ATT(regress.RegressTest):
def runTest(self):
# Initialize Keystone engine
ks = Ks(KS_ARCH_X86, KS_MODE_32)
# Assemble to get back insn encoding & statement count
encoding, count = ks.asm(b"call 5", 0x2000)
# Assert the result
self.assertEqual(encoding, [ 0xe8, 0x00, 0xe0, 0xff, 0xff ])
class TestX86Intel(regress.RegressTest):
def runTest(self):
# Initialize Keystone engine
......
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