SourcePoint Intel Help

Table of Contents

return

Return from a debug procedure.

Syntax

return [value]

Discussion

Use the return command ย to return from a debug procedure. ย ย If the debug procedure has a return value, a value may optionally be returned.

Example

To take the average of three numbers:

Command input:

define proc ord4 avg(a, b, c)

define ord4 a

define ord4 b

define ord4 c

{

ย ย return ((a + b + c) / 3)

}

avg(4, 6, 3)

Result:

00000004H

Related Topics: