Re: Need a jump opcode generator.



Yeah probably jump opcode bad.

See fucking manual useless...

I didn't help one bit, stupid stupid stupid Wieeeeeeeee.

Anyway long live the debugger and the really smart people LOL.

I wrote a little test program, look look look at this:

var
OldProtect : longword;
begin
asm

@myBeautifullLabel1:

mov eax, 5

jmp @MyBeautifullLabel3

@myBeautifullLabel2:

mov eax, 6

@myBeautifullLabel3:

mov OldProtect, eax
end;

writeln( OldProtect );

exit;

end.

// Look what the debugger showed:

LoadLibraryTest.dpr.375: jmp @MyBeautifullLabel3
004112C4 EB05 jmp $004112cb

That's a jump with 8 bit displacement.

Well that doesn't help me much either.

I probably need a bigger displacement.

Me wonders...

Maybe me need to debug some more to see what problem really is.

Bye,
Skybuck.


.


Quantcast