Fixed JIT line op problem

This commit is contained in:
David Anderson 2004-09-08 06:45:32 +00:00
parent f3ea36c5d7
commit 3010241fbd
6 changed files with 14 additions and 19 deletions

Binary file not shown.

View File

@ -1728,15 +1728,20 @@ OP_FILE: ;opcode is simply ignored
OP_LINE: OP_LINE:
;nop; ;nop;
;~dvander - opline is now variable on compile time :] ;~dvander - opline is now variable on compile time :]
push eax ;save registers
push ebp push eax
mov ebp,[amxhead] push ebp
mov eax,[ebp+_h_flags] ;get .amx flags
and eax,AMX_FLAG_LINEOPS mov ebp,[amxhead]
cmp eax,AMX_FLAG_LINEOPS mov eax,[ebp+_h_flags]
pop ebp ;check to see if the flag has line ops
pop eax and eax,AMX_FLAG_LINEOPS
je _go_debug 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 mov [ebx],edi ; no line number support: ignore opcode
add ebx,12 ; move on to next opcode add ebx,12 ; move on to next opcode

View File

@ -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

Binary file not shown.