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

regress: testcase for NASM directive [bits 16/32/64]

parent 71a91a06
No related branches found
No related tags found
No related merge requests found
......@@ -28,5 +28,9 @@ class TestX86(regress.RegressTest):
# Assert the result
self.assertEqual(encoding, [ 0x01, 0xd8, 0x66, 0x01, 0xd8 ])
encoding, count = ks.asm(b"[Bits 32]\n add eax, ebx\n[bits 16]\nadd eax, ebx")
# Assert the result
self.assertEqual(encoding, [ 0x01, 0xd8, 0x66, 0x01, 0xd8 ])
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