diff options
author | 2025-08-03 15:16:08 +0100 | |
---|---|---|
committer | 2025-08-03 15:16:08 +0100 | |
commit | 9853d19b4de3e66138da8b3e66ccdaea356ea35b (patch) | |
tree | 290d1444941e19f837f45a4c46e6fc066ca2b8d5 /src/l4d1democompat.c | |
parent | 3cce0e5621dc118b32c4143b42ced51c5328f7c7 (diff) | |
download | sst-9853d19b4de3e66138da8b3e66ccdaea356ea35b.tar.gz sst-9853d19b4de3e66138da8b3e66ccdaea356ea35b.zip |
Switch to Intel assembly syntax
Diffstat (limited to 'src/l4d1democompat.c')
-rw-r--r-- | src/l4d1democompat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/l4d1democompat.c b/src/l4d1democompat.c index 105b812..1d27984 100644 --- a/src/l4d1democompat.c +++ b/src/l4d1democompat.c @@ -123,12 +123,12 @@ __attribute__((naked)) #endif static int hook_midpoint() { __asm__ volatile ( - "pushl %%eax\n" - "movl %1, %%eax\n" - "movl (%%eax), %%eax\n" // dereference this_protocol - "movl %%eax, %0\n" // store in demoversion - "popl %%eax\n" - "jmpl *%2\n" + "push eax\n" + "mov eax, %1\n" + "mov eax, [eax]\n" // dereference this_protocol + "mov %0, eax\n" // store in demoversion + "pop eax\n" + "jmp dword ptr %2\n" : "=m" (demoversion) : "m" (this_protocol), "m" (ReadDemoHeader_midpoint) ); |