EB / 74 etc. in the first 5 bytes or why does this fail?:
Code: Select all
function SomeFunc(i: integer): integer;
asm
push eax
jmp @ende
nop
nop
@ende:
pop eax
mov eax, i
end;
Code: Select all
function SomeFunc(i: integer): integer;
asm
push eax
nop
nop
pop eax
mov eax, i
end;
also this fails:
Code: Select all
function SomeFunc(i: integer): integer;
asm
push eax
@weiter:
nop
nop
mov eax, i
cmp eax, 1
add eax, 1
je @weiter
pop eax
end;
and this not:
Code: Select all
function SomeFunc(i: integer): integer;
asm
push eax
@weiter:
nop
nop
mov eax, i
cmp eax, 1
add eax, 1
//je @weiter
pop eax
end;