*LocalRegisters* = N ∪ {*ret*}

Parameter registers in Smali are denoted by *p*0, *p*1, *p*2, ..., *pn*. The first parameter for non-static methods is always the object that the method is being invoked on, in this case *p*<sup>0</sup> holds the object reference and *p*<sup>1</sup> the second parameter register. For a static method invocation *p*<sup>1</sup> is the first parameter register. For more details, please see the Method invocation subsection.

The *.registers* directive specifies the total number of registers in the method. This includes the registers needed to hold the method parameters, which are stored in the last registers in the method.
