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 


Question about an instruction: TEST

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
QuarryTen
Newbie cheater
Reputation: 0

Joined: 25 Aug 2019
Posts: 20

PostPosted: Thu Sep 10, 2020 10:20 am    Post subject: Question about an instruction: TEST Reply with quote

In the context of video game assembly, what does the test instruction do?

I notice that in a lot of games, instructions like 'test rax,rax' would appear. What does it do? Is it like the compare instruction where it sets specific flags? I checked the wiki but it still doesn't make sense. I'm hoping someone can simplify this for me.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Sep 10, 2020 8:37 pm    Post subject: Reply with quote

Here are a few explanations of it in more depth:

https://en.wikipedia.org/wiki/TEST_(x86_instruction)
https://c9x.me/x86/html/file_module_x86_id_315.html
https://wiki.cheatengine.org/index.php?title=Assembler:Commands:TEST

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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