<root>
<file schema='101' />
<macros >
<macro >
<flowline name='GetKey' description='' >
<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
<exp exp='HIT = 0' />
<exp exp='COL = 0' />
<exp exp='ROW = 0' />
<exp exp='KEY = 0' />
</command>
<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='(ROW &lt; 5) AND (HIT = 0)' start='0' >
<flowline >
<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
<exp exp='ROW = ROW + 1' />
<exp exp='COL = 0' />
</command>
<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='ROW' >
<case >
<flowline />
</case>
<case exp='1' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='1' exp='1' />
</flowline>
</case>
<case exp='2' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='2' exp='1' />
</flowline>
</case>
<case exp='3' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='4' exp='1' />
</flowline>
</case>
<case exp='4' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='8' exp='1' />
</flowline>
</case>
<case exp='5' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='16' exp='1' />
</flowline>
</case>
</command>
<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='(COL &lt; 5) AND (HIT = 0)' start='0' >
<flowline >
<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
<exp exp='COL = COL + 1' />
</command>
<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='COL' >
<case >
<flowline />
</case>
<case exp='1' >
<flowline >
<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='1' exp='HIT' />
</flowline>
</case>
<case exp='2' >
<flowline >
<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='2' exp='HIT' />
</flowline>
</case>
<case exp='3' >
<flowline >
<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='4' exp='HIT' />
</flowline>
</case>
<case exp='4' >
<flowline >
<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='8' exp='HIT' />
</flowline>
</case>
<case exp='5' >
<flowline >
<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='16' exp='HIT' />
</flowline>
</case>
</command>
</flowline>
</command>
<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='ROW' >
<case >
<flowline />
</case>
<case exp='1' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='1' exp='0' />
</flowline>
</case>
<case exp='2' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='2' exp='0' />
</flowline>
</case>
<case exp='3' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='4' exp='0' />
</flowline>
</case>
<case exp='4' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='8' exp='0' />
</flowline>
</case>
<case exp='5' >
<flowline >
<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048577' mask='16' exp='0' />
</flowline>
</case>
</command>
</flowline>
</command>
<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='HIT' swap='0' >
<flowline >
<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
<exp exp='KEY = (ROW * 5) + COL' />
</command>
</flowline>
<flowline />
</command>
<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
<exp exp='.Return = KEY' />
</command>
</flowline>
</macro>
</macros>
<variables >
<variable public='0' >
<def class_type='variable' name='KEY' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='COL' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='ROW' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='HIT' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
</variable>
</variables>
</root>
