-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecimalBinaryConverter_Blanks.ozocode
1 lines (1 loc) · 12.8 KB
/
decimalBinaryConverter_Blanks.ozocode
1
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="procedures_defnoreturn" id="Q(wR0yJDu+l,]7HiqQ9x" x="1105" y="-1748"><mutation><arg name="DecimalNumber"></arg></mutation><field name="NAME">ConvertDecToBinary</field><comment pinned="false" h="80" w="160">Describe this function...</comment><statement name="STACK"><block type="variables_set" id="559"><field name="VAR">B1</field><value name="VALUE"><block type="math_number" id="560"><field name="NUM">0</field></block></value><next><block type="variables_set" id="561"><field name="VAR">B2</field><value name="VALUE"><block type="math_number" id="562"><field name="NUM">0</field></block></value><next><block type="variables_set" id="563"><field name="VAR">B4</field><value name="VALUE"><block type="math_number" id="564"><field name="NUM">0</field></block></value><next><block type="variables_set" id="565"><field name="VAR">B8</field><value name="VALUE"><block type="math_number" id="566"><field name="NUM">0</field></block></value><next><block type="variables_set" id="567"><field name="VAR">B16</field><value name="VALUE"><block type="math_number" id="568"><field name="NUM">0</field></block></value><next><block type="variables_set" id="569"><field name="VAR">B32</field><value name="VALUE"><block type="math_number" id="570"><field name="NUM">0</field></block></value><next><block type="variables_set" id="571"><field name="VAR">B64</field><value name="VALUE"><block type="math_number" id="572"><field name="NUM">0</field></block></value><next><block type="variables_set" id="573"><field name="VAR">quotient</field><value name="VALUE"><block type="variables_get" id="574"><field name="VAR">DecimalNumber</field></block></value><next><block type="controls_for" id="575"><field name="VAR">i</field><value name="FROM"><block type="math_number" id="576"><field name="NUM">7</field></block></value><value name="TO"><block type="math_number" id="577"><field name="NUM">1</field></block></value><value name="BY"><block type="math_number" id="578"><field name="NUM">-1</field></block></value><statement name="DO"><block type="variables_set" id="579"><field name="VAR">zeroOrOne</field><value name="VALUE"><block type="math_modulo" id="580"><value name="DIVIDEND"><block type="variables_get" id="581"><field name="VAR">quotient</field></block></value><value name="DIVISOR"><block type="math_number" id="582"><field name="NUM">2</field></block></value></block></value><next><block type="controls_if" id="583"><mutation elseif="5" else="1"></mutation><value name="IF0"><block type="logic_compare" id="584"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="585"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="586"><field name="NUM">7</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="587"><field name="VAR">B1</field><value name="VALUE"><block type="variables_get" id="588"><field name="VAR">zeroOrOne</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="589"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="590"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="591"><field name="NUM">6</field></block></value></block></value><statement name="DO1"><block type="variables_set" id="592"><field name="VAR">B2</field><value name="VALUE"><block type="variables_get" id="593"><field name="VAR">zeroOrOne</field></block></value></block></statement><value name="IF2"><block type="logic_compare" id="594"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="595"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="596"><field name="NUM">5</field></block></value></block></value><statement name="DO2"><block type="variables_set" id="597"><field name="VAR">B4</field><value name="VALUE"><block type="variables_get" id="598"><field name="VAR">zeroOrOne</field></block></value></block></statement><value name="IF3"><block type="logic_compare" id="599"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="600"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="601"><field name="NUM">4</field></block></value></block></value><statement name="DO3"><block type="variables_set" id="602"><field name="VAR">B8</field><value name="VALUE"><block type="variables_get" id="603"><field name="VAR">zeroOrOne</field></block></value></block></statement><value name="IF4"><block type="logic_compare" id="604"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="605"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="606"><field name="NUM">3</field></block></value></block></value><statement name="DO4"><block type="variables_set" id="607"><field name="VAR">B16</field><value name="VALUE"><block type="variables_get" id="608"><field name="VAR">zeroOrOne</field></block></value></block></statement><value name="IF5"><block type="logic_compare" id="609"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="610"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="611"><field name="NUM">2</field></block></value></block></value><statement name="DO5"><block type="variables_set" id="612"><field name="VAR">B32</field><value name="VALUE"><block type="variables_get" id="613"><field name="VAR">zeroOrOne</field></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="614"><field name="VAR">B64</field><value name="VALUE"><block type="variables_get" id="615"><field name="VAR">zeroOrOne</field></block></value></block></statement><next><block type="variables_set" id="616"><field name="VAR">quotient</field><value name="VALUE"><block type="math_arithmetic" id="617"><field name="OP">DIVIDE</field><value name="A"><block type="variables_get" id="618"><field name="VAR">quotient</field></block></value><value name="B"><block type="math_number" id="619"><field name="NUM">2</field></block></value></block></value><next><block type="controls_if" id="620"><value name="IF0"><block type="logic_compare" id="621"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="622"><field name="VAR">quotient</field></block></value><value name="B"><block type="math_number" id="623"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_flow_statements" id="624"><field name="FLOW">BREAK</field></block></statement></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="variables_set" id="101" x="-112" y="-1667"><field name="VAR">threeDigNum</field><value name="VALUE"><block type="math_number" id="102"><field name="NUM">27</field></block></value><next><block type="ozobot_evo_say_number" id="1W(fy{pjiCtcu`2BdMF8"><value name="VALUE"><block type="math_number" id="aIR=DAsan5BpcUYAD~+m"><field name="NUM">27</field></block></value><next><block type="system_set_lf_speed" id="r6@0K-f9hU}]OAFO~#6j"><value name="LF_SPEED_MMPS"><block type="math_number" id=":!4H3lmk1q}bjrrV}H+)"><field name="NUM">30</field></block></value><next><block type="procedures_callnoreturn" id="~8`t|ql^#M[V:_/F{TF]"><mutation name="ConvertDecToBinary"><arg name="DecimalNumber"></arg></mutation><value name="ARG0"><block type="variables_get" id="489"><field name="VAR">threeDigNum</field></block></value><next><block type="procedures_callnoreturn" id="N0LZgTA}/C$/zMJFt6N:"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="7/^HSgZ~26Ij5es{5#kZ"><field name="VAR">B64</field></block></value><next><block type="procedures_callnoreturn" id="fyR`L^0i9]eE;A%2f^Cn"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id=";5%E1[p=~wo|X*{BuKCI"><field name="VAR">B32</field></block></value><next><block type="procedures_callnoreturn" id="D^ctY@qPEAPzebCq@)}E"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="F:#6WW_3YD^%Rjt=2-27"><field name="VAR">B16</field></block></value><next><block type="procedures_callnoreturn" id="ODJ_`YYYS[ar0qi44LsF"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="*1t7lC$P}ZDJirK5@FJ]"><field name="VAR">B8</field></block></value><next><block type="procedures_callnoreturn" id="(@4iFhKJ@}y7K5@7u%th"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="FVAY7R%RB{Qt{4w?%U=4"><field name="VAR">B4</field></block></value><next><block type="procedures_callnoreturn" id="kq+(*eqF63T=acn,Z5Ew"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="i@U0BG7lyxv8QuWg+P|6"><field name="VAR">B2</field></block></value><next><block type="procedures_callnoreturn" id="Z!oq18rT6Nz(mx;-xY@A"><mutation name="ZeroOrOne"><arg name="binVal"></arg></mutation><value name="ARG0"><block type="variables_get" id="JXG^J}7Q[j%6$K:NZw1R"><field name="VAR">B1</field></block></value><next><block type="ozobot_evo_play_note_with_duration_and_octave_and_wait" id="g$vLPE5U)k-P}~{5;=ec"><field name="NOTE">0</field><field name="OCTAVE">84</field><field name="DURATION">500</field><next><block type="library_animation_traffic_lights" id="g#OBr98.xvOA8kAzN{S%"><next><block type="system_exit" id="oYge)35DI,dz25Yltw0y"><field name="EXIT_MODE">EXIT_POWER_DOWN</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="(Xj3+_(7{,)9H!Hn#ek!" x="295" y="-1674"><mutation><arg name="binVal"></arg></mutation><field name="NAME">ZeroOrOne</field><comment pinned="false" h="80" w="160">Describe this function...</comment><statement name="STACK"><block type="ozobot_LED_colour_picker" id="W)`_)%DIXepcNUI7jn%n"><field name="COLOUR">#ffffff</field><next><block type="controls_whileUntil" id="Gsp*%|GcmB(YCdeEa:|g"><field name="MODE">WHILE</field><value name="BOOL"><block type="logic_boolean" id="+F7PcjIS[+YJ1fiv5#0:"><field name="BOOL">TRUE</field></block></value><statement name="DO"><block type="ozobot_go_to_next_intersection" id="nN-+ZVY3AJJbKaZPuOGj"><next><block type="variables_set" id="HkD=)=(u]VGgH@!otb[p"><field name="VAR">color</field><next><block type="controls_if" id="TxA.ZoUI|g-^~61,bd|F"><value name="IF0"><block type="logic_compare" id="0cA=V]F8Dk2FUqvmS?hC"><field name="OP">EQ</field></block></value><statement name="DO0"><block type="controls_if" id="]2-+JRK+EgXd+CqpjAb."><mutation elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="g)J`y`3KJ!kF(qMw(Dd3"><field name="OP">EQ</field></block></value><statement name="DO0"><block type="ozobot_evo_say_number" id="+47B}wkRRGTuEn!BF|LM"><next><block type="ozobot_choose_way_at_intersection" id="}(BS|6FUG/l}(*A=gfa^"><field name="DIRECTION">DIRECTION_LEFT</field><next><block type="ozobot_LED_colour_picker" id=";jN}ehXOD[)E$C%?g6mq"><field name="COLOUR">#0000ff</field></block></next></block></next></block></statement><value name="IF1"><block type="logic_compare" id="+vv7#e5Z$f6~:Q:]DeuL"><field name="OP">EQ</field></block></value><statement name="DO1"><block type="ozobot_evo_say_number" id="**e]_c!3Q@V,-6-~T)^m"><next><block type="ozobot_choose_way_at_intersection" id="2fF,Tum~Gr[~?up_E+M("><field name="DIRECTION">DIRECTION_RIGHT</field><next><block type="ozobot_LED_colour_picker" id="pgIa,W$i#3%Ez3on*s75"><field name="COLOUR">#ff0000</field></block></next></block></next></block></statement><next><block type="controls_flow_statements" id="=)s%3.qoZCp|4k$FgXQ0"><field name="FLOW">BREAK</field></block></next></block></statement></block></next></block></next></block></statement></block></next></block></statement></block><block type="system_get_line_color" id="JF`.7IqIKcve8uD53%zN" x="835" y="-1650"></block><block type="ozobot_line_color_type" id="~BwQ5f0r+K_AQcoX_7vr" x="855" y="-1539"><field name="INDEXED_COLOR">#ff0000</field></block><block type="variables_get" id="vXZgmI/vxY%RD^+6/tP5" x="910" y="-1479"><field name="VAR">color</field></block><block type="variables_get" id="4208" x="783" y="-1462"><field name="VAR">binVal</field></block><block type="math_number" id="o/SO^G8-p:GRoaQye%5p" x="954" y="-1428"><field name="NUM">0</field></block><block type="math_number" id="cwPeBHJW+#0tA23(/1_*" x="895" y="-1385"><field name="NUM">0</field></block><block type="variables_get" id="}=rUhrTEW1)AZ3pVm@}/" x="779" y="-1322"><field name="VAR">binVal</field></block><block type="math_number" id="JWytCE-lObhUy.?t62hR" x="890" y="-1302"><field name="NUM">1</field></block><block type="math_number" id="Yc1gV@uk8H1#E`,$)1OQ" x="875" y="-1245"><field name="NUM">1</field></block></xml>