Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int str1 = vmx_gen_addconst(&s, VMX_STRING, (unsigned int)"Oi");
- int str2 = vmx_gen_addconst(&s, VMX_STRING, (unsigned int)"Tchau");
- int f1 = vmx_gen_addconst(&s, VMX_FUNC_REF, (unsigned int)"mes");
- int f2 = vmx_gen_addconst(&s, VMX_FUNC_REF, (unsigned int)"next");
- vmx_gen_op2(&s, VMX_PUSH_CONST, str1);
- vmx_gen_op2(&s, VMX_PUSH_CONST, f1);
- vmx_gen_op1(&s, VMX_CALLBUILDIN);
- vmx_gen_op2(&s, VMX_PUSH_CONST, f2);
- vmx_gen_op1(&s, VMX_CALLBUILDIN);
- vmx_gen_op2(&s, VMX_PUSH_CONST, str2);
- vmx_gen_op2(&s, VMX_PUSH_CONST, f1);
- vmx_gen_op1(&s, VMX_CALLBUILDIN);
- vmx_gen_op2(&s, VMX_PUSH_CONST, f2);
- vmx_gen_op1(&s, VMX_CALLBUILDIN);
- vmx_gen_op1(&s, VMX_HLT);
- bytecode = vmx_gen_final(&s, &size);
Add Comment
Please, Sign In to add comment