RoyalIcing / Orb

Write WebAssembly with Elixir
https://useorb.dev
BSD 3-Clause "New" or "Revised" License
215 stars 4 forks source link

Add support for `select` instruction #23

Open RoyalIcing opened 8 months ago

RoyalIcing commented 8 months ago

https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Control_flow/Select


Orb.Stack.select(1) do
  i32(42)
  i32(99)
end

Probably more useful for when we have externref