SourcePoint Intel Help

Table of Contents

forward

Declare a forward reference to a debug procedure.

Syntax

forward proc [return-type] name

Where:

proc

specifies a procedure is being declared.

return-type

specifies the procedure data type returned.

name

specifies the procedure name.

Discussion

Debug procedures must be defined before they can be referenced. ย Sometimes this isnโ€™t practical. ย The forward command can be used to declare a debug procedure type, so that it can be referenced (without a syntax error), before it is actually defined.

Note: ย forward is only allowed within a debug procedure definition

Example 1

To reference a debug procedure named max before it is defined.

Command Input:

define proc myProc()

{

ย ย ย ย ย forward proc ord4 max // max returns an ord4

ย ย ย ย ย printf("max = %x\n", max())

}

ย 

define proc ord4 max()

{

ย ย ย ย ย return 0x10

}

ย 

myProc

Result:

max = 0x10

Related Topics