summaryrefslogtreecommitdiff
path: root/python/architecture.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/architecture.py')
-rw-r--r--python/architecture.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/architecture.py b/python/architecture.py
index bb1f17db..0c5f816d 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -453,6 +453,11 @@ class Architecture(with_metaclass(_ArchitectureMetaClass, object)):
core.BNFreeTypeLibraryList(handles, count.value)
return result
+ @property
+ def can_assemble(self):
+ """returns if the architecture can assemble instructions (read-only)"""
+ return core.BNCanArchitectureAssemble(self.handle)
+
def _init(self, ctxt, handle):
self.handle = handle