<root>
<file schema='103' />
<macros >
<macro >
<flowline name='HexStrToInt' description='' statediag='0' >
<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<param name='str' type='T8*' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
<array size='20' />
</param>
<local name='len' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<local name='x' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<local name='c' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.len = Length$ (.str)' />
<exp exp='.x = 0' />
<exp exp='.i = 0' />
</command>
<command class_type='loop' title='Loop' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' type='0' exp='.i &lt; .len' >
<flowline >
<command class_type='calculation' title='Make way for the next digit' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.x = .x * 16' />
<exp exp='.c = .str[.i]' />
</command>
<command class_type='decision' title='Is it a digit' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='(.c &gt;= &apos;0&apos;) &amp;&amp; (.c &lt;= &apos;9&apos;)' swap='0' >
<flowline >
<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.x = .x + (.c - &apos;0&apos;)' />
</command>
</flowline>
<flowline >
<command class_type='decision' title='Hex digit' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='(.c &gt;= &apos;A&apos;) &amp;&amp; (.c &lt;= &apos;F&apos;)' swap='0' >
<flowline >
<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.x = .x + (.c - &apos;A&apos; + 10)' />
</command>
</flowline>
<flowline >
<command class_type='calculation' title='End of valid number so lets bail out of the loop' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.i = .len' />
</command>
</flowline>
</command>
</flowline>
</command>
<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.i = .i + 1' />
</command>
</flowline>
</command>
<command class_type='calculation' title='Calculation' break='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
<exp exp='.Return = .x' />
</command>
</flowline>
</macro>
</macros>
<variables />
</root>
