Fixed JIT line op problem
This commit is contained in:
parent
f3ea36c5d7
commit
3010241fbd
Binary file not shown.
@ -1728,15 +1728,20 @@ OP_FILE: ;opcode is simply ignored
|
||||
OP_LINE:
|
||||
;nop;
|
||||
;~dvander - opline is now variable on compile time :]
|
||||
push eax
|
||||
push ebp
|
||||
mov ebp,[amxhead]
|
||||
mov eax,[ebp+_h_flags]
|
||||
and eax,AMX_FLAG_LINEOPS
|
||||
cmp eax,AMX_FLAG_LINEOPS
|
||||
pop ebp
|
||||
pop eax
|
||||
je _go_debug
|
||||
;save registers
|
||||
push eax
|
||||
push ebp
|
||||
;get .amx flags
|
||||
mov ebp,[amxhead]
|
||||
mov eax,[ebp+_h_flags]
|
||||
;check to see if the flag has line ops
|
||||
and eax,AMX_FLAG_LINEOPS
|
||||
cmp eax,AMX_FLAG_LINEOPS
|
||||
;restore registers
|
||||
pop ebp
|
||||
pop eax
|
||||
;if so, skip down to debug compiler
|
||||
je _go_debug
|
||||
|
||||
mov [ebx],edi ; no line number support: ignore opcode
|
||||
add ebx,12 ; move on to next opcode
|
||||
|
@ -1,10 +0,0 @@
|
||||
LIBRARY jits
|
||||
DESCRIPTION "JIT for AMX Mod X"
|
||||
EXPORTS
|
||||
asm_runJIT @1
|
||||
getMaxCodeSize @2
|
||||
amx_exec_asm @3
|
||||
amx_opcodelist @4
|
||||
SECTIONS
|
||||
.data READ WRITE
|
||||
.code EXECUTE
|
Binary file not shown.
Binary file not shown.
BIN
amxmodx/JIT/jits.obj
Executable file
BIN
amxmodx/JIT/jits.obj
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user