daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   int str1 = vmx_gen_addconst(&s, VMX_STRING, (unsigned int)"Oi");
  2.                 int str2 = vmx_gen_addconst(&s, VMX_STRING, (unsigned int)"Tchau");
  3.                 int f1 = vmx_gen_addconst(&s, VMX_FUNC_REF, (unsigned int)"mes");
  4.                 int f2 = vmx_gen_addconst(&s, VMX_FUNC_REF, (unsigned int)"next");
  5.  
  6.                 vmx_gen_op2(&s, VMX_PUSH_CONST, str1);
  7.                 vmx_gen_op2(&s, VMX_PUSH_CONST, f1);
  8.                 vmx_gen_op1(&s, VMX_CALLBUILDIN);
  9.  
  10.                 vmx_gen_op2(&s, VMX_PUSH_CONST, f2);
  11.                 vmx_gen_op1(&s, VMX_CALLBUILDIN);
  12.  
  13.                 vmx_gen_op2(&s, VMX_PUSH_CONST, str2);
  14.                 vmx_gen_op2(&s, VMX_PUSH_CONST, f1);
  15.                 vmx_gen_op1(&s, VMX_CALLBUILDIN);
  16.  
  17.                 vmx_gen_op2(&s, VMX_PUSH_CONST, f2);
  18.                 vmx_gen_op1(&s, VMX_CALLBUILDIN);
  19.  
  20.                 vmx_gen_op1(&s, VMX_HLT);
  21.  
  22.                 bytecode = vmx_gen_final(&s, &size);
RAW Paste Data
Top