omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / data / examples / om2_rotate.om
| 1 | om2 |
| 2 | note rotr and rotl rotate an unsigned value; amounts outside 0..width-1 trap 7 |
| 3 | fn main to int |
| 4 | x = uint 0x80000001 |
| 5 | y = rotr x 1 |
| 6 | z = rotl y 2 |
| 7 | ret int z |
| 8 | end |