Inline Assembly

closed account (DGvMDjzh)
Hi. I have no knowledge when it comes to assembly and I currently don't have the time to learn about it.
I was wondering if there was anyone out there that could help me convert this VC++ code to be compatible with GCC.

I would be truly grateful.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
int __declspec(naked) ExecuteScriptBuf() {
 __asm {
 						
  mov ecx, OFFSET ScriptBuf	
  sub ecx, SCRIPT_BASE		
  mov gst.dwScriptIP, ecx		

  mov ecx, OFFSET gst			
  call ProcessOneCommand		
  xor eax, eax				
  mov al, gst.bJumpFlag		
  ret							
 }
}
Last edited on
Topic archived. No new replies allowed.