Click or drag to resize

CommandListAppendCaseRel(Int32, UInt32) Method

Used in a switch-block, specifies a test case and the relative offset of a target command within the current list.


Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.5.2
Syntax
C#
public void AppendCaseRel(
	int pos,
	uint cond
)

Parameters

pos  Int32
The relative position of the target command within the current list.
cond  UInt32
The condition mask against which the I/O port value will be tested. Note that how this value is matched against the I/O port value depends on the compareCondAsMask flag set using the AppendSwitch(IOPort, Boolean, UInt32) command.
Remarks
Appends a CASE_GOTO_REL command to the list.

Before calling AppendCaseRel, you should call ListAPIGetListCaret(Int32) so that you can correctly calculate the relative offset to the target command.


See also: 12.5.3.1 Flow-Control within the current Command List

See Also