Lahey/Fujitsu Fortran

Setting and Displaying Program Variables

set variable = value

Sets variable to value.

set *addr = value

Sets *addr to value.

set reg = value

Sets reg to value. reg must be a register or a floating-point register.

print [ [:F] variable [=value] ]

Displays the content of the program variable variable by using the edit format F. If edit format F is omitted, it is implied based on the type of variable. variable can be a scalar, array, array element, array section, derived type, or derived type element. F can have any of the following values:

If value is specified, the variable will be set to value.

If no arguments are specified, the last print command having arguments is repeated.

memprint [:FuN ] addr

dump [:FuN ] addr

Displays the content of the memory address addr by using edit format F. u indicates the display unit, and N indicates the number of units. F can have the same values as were defined for the Print command variable F.

If omitted, F defaults to x (hexadecimal).

u can have any of the following values:

If u is omitted, it defaults to w (word). If N is omitted, it defaults to 1. Therefore, the two following commands have the same result:

memprint addr

memprint :xw1 addr