From b47c5a64e466d2322a7072a3fd1d11aff5cfab43 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 8 Jan 2021 13:20:30 -0500 Subject: add note about max_instr_length to Architecture class --- python/architecture.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index 0c5f816d..cd976af1 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -104,6 +104,9 @@ class Architecture(with_metaclass(_ArchitectureMetaClass, object)): >>> from binaryninja import * >>> arch = Architecture['x86'] + + .. note:: The `max_instr_length` property of an architecture is not necessarily representative of the maximum instruction size of the associated CPU architecture. Rather, it represents the maximum size of a potential instruction that the architecture plugin can handle. So for example, the value for x86 is 16 despite the lagest valid instruction being only 15 bytes long, and the value for mips32 is currently 8 because multiple instrutions are decoded looking for delay slots so they can be reordered. + """ name = None endianness = Endianness.LittleEndian -- cgit v1.3.1