Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bdunderscore/aa8201448a119f519692a1af51c2ce2f to your computer and use it in GitHub Desktop.
Save bdunderscore/aa8201448a119f519692a1af51c2ce2f to your computer and use it in GitHub Desktop.
.data_start
__refl_const_intnl_udonTypeID: %SystemInt64, null
__refl_const_intnl_udonTypeName: %SystemString, null
__0_a_Int32: %SystemInt32, null
__0_b_Int32: %SystemInt32, null
__0_c_Int32: %SystemInt32, null
__0_d_Int32: %SystemInt32, null
__1_c_Int32: %SystemInt32, null
__0_const_intnl_SystemInt32: %SystemInt32, null
__1_const_intnl_SystemInt32: %SystemInt32, null
__0_const_intnl_exitJumpLoc_UInt32: %SystemUInt32, null
__0_const_intnl_SystemUInt32: %SystemUInt32, null
__0_intnl_returnValSymbol_Int32: %SystemInt32, null
__0_intnl_SystemInt32: %SystemInt32, null
__0_intnl_returnTarget_UInt32: %SystemUInt32, null
.data_end
# using System.Collections.Generic;
# using UdonSharp;
# using UnityEngine;
# using VRC.SDKBase;
# using VRC.Udon;
# public class GameObject1 : UdonSharpBehaviour
.code_start
# int f(int c, int d)
f:
PUSH, __0_const_intnl_SystemUInt32
# {
# return c + d;
PUSH, __0_c_Int32
PUSH, __0_d_Int32
PUSH, __0_intnl_returnValSymbol_Int32
EXTERN, "SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32"
PUSH, __0_intnl_returnTarget_UInt32 #Explicit return sequence
COPY
JUMP_INDIRECT, __0_intnl_returnTarget_UInt32
PUSH, __0_intnl_returnTarget_UInt32 #Function epilogue
COPY
JUMP_INDIRECT, __0_intnl_returnTarget_UInt32
# void Start()
.export _start
_start:
PUSH, __0_const_intnl_SystemUInt32
# {
# int a = 1;
PUSH, __0_const_intnl_SystemInt32
PUSH, __0_a_Int32
COPY
# int b = 2;
PUSH, __1_const_intnl_SystemInt32
PUSH, __0_b_Int32
COPY
# int c = f(a + b, a * b);
PUSH, __0_a_Int32
PUSH, __0_b_Int32
PUSH, __0_c_Int32
EXTERN, "SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32"
PUSH, __0_a_Int32
PUSH, __0_b_Int32
PUSH, __0_d_Int32
EXTERN, "SystemInt32.__op_Multiplication__SystemInt32_SystemInt32__SystemInt32"
PUSH, __0_const_intnl_exitJumpLoc_UInt32
JUMP, 0x00000008
PUSH, __0_intnl_returnValSymbol_Int32
PUSH, __0_intnl_SystemInt32
COPY
PUSH, __0_intnl_SystemInt32
PUSH, __1_c_Int32
COPY
PUSH, __0_intnl_returnTarget_UInt32 #Function epilogue
COPY
JUMP_INDIRECT, __0_intnl_returnTarget_UInt32
.code_end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment