17.1 Declarations and Parameters 17.3 Running Scripts
Simics User's Guide  /  V Appendix  /  17 Old Script Parameters  / 

17.2 Results

A script can return variables that it has set by declaring results:

  result NAME : TYPE

Example:

  result mac_address : string

It means that the script must set $mac_address before terminating, that it must be a string value, and that this variable is available to the caller. All other variables assigned to by the script are lost.

The same name can be used for both a parameter and a result.

17.1 Declarations and Parameters 17.3 Running Scripts