How to Solve NameError: name 'UC_ARM_REG_R1' is not defined -- unicorn

Solution: Import the 'UC_ARM_REG_R1' module

To Solve the error, add the following line to the top of your code.

from unicorn import UC_ARM_REG_R1

 

For more information:
Python unicorn UC_ARM_REG_R1