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 


custom_jump_call_assembler_with_trampoline

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sun Nov 22, 2020 1:12 pm    Post subject: custom_jump_call_assembler_with_trampoline This post has 1 review(s) Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites