dfhack/plugins/Dfusion/luafiles/onfunction/functions.asm

20 lines
210 B
NASM

2011-08-19 16:12:30 -06:00
.intel_syntax
push eax
push edx
push ecx
push ebx
push eax
mov eax,[esp+20]
2011-08-19 16:12:30 -06:00
push eax
function:
call 0xdeadbee4
2011-08-19 16:12:30 -06:00
function2:
mov [0xdeadbeef],eax #self modifying code... :/
pop eax
function3:
2011-08-20 08:20:04 -06:00
jmp [0xdeadbeef]
2011-08-19 16:12:30 -06:00