protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

unresolved_br.wat (626B)


      1 
      2 (module
      3 	(func $add (param $lhs i32) (param $rhs i32) (result i32)
      4 	      local.get $lhs
      5 	      local.get $rhs
      6 	      i32.add)
      7 	(func $sub (param $lhs i32) (param $rhs i32) (result i32)
      8 	      local.get $lhs
      9 	      local.get $rhs
     10 	      i32.sub
     11 	      block
     12 		local.get 0
     13 		i32.const 1
     14 		i32.add
     15 		block
     16 		  block
     17 		    br 1
     18 		  end
     19 		end
     20 		local.set 0
     21 		local.get 0
     22 		i32.const 4
     23 		i32.gt_u
     24 		br_if 0
     25 	      end
     26 	      )
     27 	(func $start (result i32)
     28 	      (local i32 i32)
     29 	      i32.const 0
     30 	      i32.const 1
     31 	      call $sub
     32 	      )
     33 	(export "start" (func $start))
     34 	(export "add" (func $add))
     35 	(export "sub" (func $sub)))