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

Solution: Import the 'UC_ARM_REG_R0' module

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

from unicorn import UC_ARM_REG_R0

 

For more information:
Python unicorn UC_ARM_REG_R0