aso

Zitat von
SirThornberry:
OK, an dieser Stelle wäre natürlich der direkte Sprung nicht schlecht ^^
Obwohl du dort natürlich auch relativ springen könntest
Code:
JMP (neueFunktion - aktuellePosition)
also in etwa:
Delphi-Quellcode:
lBuffer : Array[0..4] of Byte;
...
PByte(@lBuffer)^ := $e9;
PCardinal(@lBuffer[1])^ := Cardinal(ANewFunction) - Cardinal(AOldFunction);
PS: wenn du es schon so aufschlüsselt, dann wäre es so wohl "richtiger"
lBuffer : Array[0..(2 + 4 + 4) - 1] of Byte;
Ein Therapeut entspricht 1024 Gigapeut.