Advertisement
snake5

new lang basic function bytecode

Jan 17th, 2015
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.36 KB | None | 0 0
  1. //// CODE ////
  2. func _test( a : int32 ) : int32
  3. {
  4.     var v : int8 = -5;
  5.     return 0s8 + a + v;
  6. }
  7. //// OUTPUT ////
  8. DECLARG <int32> a [11]
  9. DECLVAR <int8> v [12]
  10. CONST <uint8> 0 [15] : 05
  11. NEGATE <uint32> 1 [18] <= 0 [15]
  12. COPY <uint32> 2 [19] <= 1 [18]
  13. CONST <int8> 3 [20] : 00
  14. ADD <int32> 4 [22] <= 3 [20], a [11]
  15. ADD <int32> 5 [23] <= 4 [22], v [12]
  16. RETURN 5 [23]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement