SourcePoint AMD Help

Table of Contents

proc

Display a debug procedure.

Syntax

proc proc-name

Discussion

The proc command displays a debug procedure (proc-name) that has been previously defined with the define command.

Example

The following example shows how to define a procedure named "power." This proc returns the result of a value and its exponent.

Command input:

define proc power(arg1, arg2)

define int1 arg1

define int1 arg2

{

   define int1 index

   define ord4 result = 1

   for (index = 1 ; index <= arg2 ; index += 1)

      result = result * arg1

   return result

}

proc power

Result:

define proc power(arg1, arg2)

define int1 arg1

define int1 arg2

{

   define int1 index

   define ord4 result = 1

   for (index = 1 ; index <= arg2 ; index += 1)

      result = result * arg1

   return result

}