Modifications

Sauter à la navigation Sauter à la recherche
2 octets supprimés ,  19 avril 2015 à 08:17
Ligne 17 : Ligne 17 :  
     movw(r0, 42)</nowiki>
 
     movw(r0, 42)</nowiki>
   −
You can enter this in a script or at the REPL. This function takes no arguments and returns the number 42. {{fname|r0}} is a register, and the value in this register when the function returns is the value that is returned. Micro Python always interprets the {{integer|r0}} as an integer, and converts it to an integer object for the caller.
+
You can enter this in a script or at the REPL. This function takes no arguments and returns the number 42. {{fname|r0}} is a register, and the value in this register when the function returns is the value that is returned. Micro Python always interprets the {{fname|r0}} as an integer, and converts it to an integer object for the caller.
    
If you run {{fname|print(fun())}} you will see it print out 42.}}
 
If you run {{fname|print(fun())}} you will see it print out 42.}}
29 917

modifications

Menu de navigation