1.1 --- a/sourcepawn/vm/jit/x86/opcode_helpers.cpp Wed Sep 20 04:14:53 2006 +0000
1.2 +++ b/sourcepawn/vm/jit/x86/opcode_helpers.cpp Wed Sep 20 04:52:13 2006 +0000
1.3 @@ -6,6 +6,28 @@
1.4
1.5 int OpAdvTable[OP_NUM_OPCODES];
1.6
1.7 +void Write_Prologue(JitWriter *jit)
1.8 +{
1.9 + /**
1.10 + * The state expected by our plugin is:
1.11 + * #define AMX_REG_PRI REG_EAX
1.12 + #define AMX_REG_ALT REG_EDX
1.13 + #define AMX_REG_STK REG_EBP
1.14 + #define AMX_REG_DAT REG_EDI
1.15 + #define AMX_REG_TMP REG_ECX
1.16 + #define AMX_REG_INFO REG_ESI
1.17 + #define AMX_REG_FRM REG_EBX
1.18 + #define AMX_INFO_FRM AMX_REG_INFO
1.19 + #define AMX_INFO_HEAP 4
1.20 + #define AMX_INFO_RETVAL 12
1.21 + *
1.22 + * The variables we're passed in:
1.23 + * sp_context_t *ctx, uint32_t code_idx, cell_t *result
1.24 + */
1.25 +
1.26 +
1.27 +}
1.28 +
1.29 void Macro_PushN_Addr(JitWriter *jit, int i)
1.30 {
1.31 //push eax