Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
panraven
Grandmaster Cheater
Reputation: 55
Joined: 01 Oct 2008
Posts: 942

PostPosted: Sun Nov 22, 2020 1:12 pm    Post subject: custom_jump_call_assembler_with_trampoline

Script here
https://pastebin.com/ifrYmpmp

Handle following assembler instruction, to enhance control of immediate jump target (ie. no indirect or register addressing) .
Code:

jmp!         target_address
jmp!short    target_address
jmp!near     target_address
jmp!long     target_address
call!        target_address
call!short   target_address
call!near    target_address
call!long    target_address


The target address should be expected to evaluate to a static address, ie. no [...] format and no register etc.

Without the distance modifier after !, it select the shortest form possible,
else it force near/long if specified and possible. !short is kind of redundancy.

In case of force Near, but the jump distance is greater than 2G,
it will try allocate a trampoline to keep the jump using 5-bytes format.

The trampoline and long jump seems only useful if making an aa script with ONE allocation with multiple inject point in some jit game engine (ie. mono-il-jit).
So unnecessary is this extension, but may provide some convenience.

bye~
_________________
- Retarded.
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
DaSpamer
Review: Approve
Post reference:
ReviewPosted: Sun Nov 22, 2020 11:52 pm

You've been a real gem to the community!
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites