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 


pushfq.. Help me to understand ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 0

Joined: 11 Mar 2016
Posts: 209

PostPosted: Tue Jan 02, 2018 11:50 am    Post subject: pushfq.. Help me to understand ? Reply with quote

command pushfq
PUSHes (saves) the RFLAGS register (64 bit) onto the stack.
Note: Only available in 64 bit mode.

Does that mean the command work only on windows System 64 bit and will not work on 32 bit Systems ?

or mean if the game registers was like eax,ecx 32 bit registers will not work and the command works only for 64 bit registers liker rax,rcx ?


If it was the first answer could I compile different instructions for different windows modes like using pushfq for 64x mode and pushad for 32x or they can be used in the same code ?
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 8

Joined: 24 Feb 2017
Posts: 267
Location: Right Here Buddy.

PostPosted: Tue Jan 02, 2018 1:14 pm    Post subject: Reply with quote

It means it is only available in a 64 bit process running in a 64 bit environment.

So if you have access to the 64 bit registries (RAX, R14, ...) then you are in 64 bit mode, and the flags registry will be 64 bits. And PUSHFD (32 bit push) gets replaced by PUSHFQ (64 bit push).

_________________
A: What manner of man are you that can summon up fire without flint or tinder?
T: I... am an enchanter.
Back to top
View user's profile Send private message
SunBeam
I post too much
Reputation: 64

Joined: 25 Feb 2005
Posts: 4018
Location: Romania

PostPosted: Fri Jan 26, 2018 2:23 am    Post subject: Reply with quote

Sadly, there's no PUSHAD (say PUSHAQ) to store/restore all R64 Sad
_________________
More stuff on sb.deviatted.com. Work in progress.
Back to top
View user's profile Send private message
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1973

PostPosted: Wed Feb 07, 2018 8:58 am    Post subject: Reply with quote

SunBeam wrote:
Sadly, there's no PUSHAD (say PUSHAQ) to store/restore all R64 Sad

I wonder if it could be implemented as a "standard macro" that ships with CE so CE would auto-translate like so:

Code:
pushaq:
    push rax
    push rcx
    push rdx
    push rbx
    push rsp
    push rbp
    push rsi
    push rdi

pushaqa:
    push rax
    push rcx
    push rdx
    push rbx
    push rsp
    push rbp
    push rsi
    push r8
    push r9
    push r10
    push r11
    push r12
    push r13
    push r14
    push r15


Including POP the other way around.
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 8

Joined: 24 Feb 2017
Posts: 267
Location: Right Here Buddy.

PostPosted: Wed Feb 07, 2018 9:22 am    Post subject: Reply with quote

You could do it with some custom AA commands.
http://wiki.cheatengine.org/index.php?title=Lua:registerAutoAssemblerCommand

But based on every where else in the OP including the subject it's PUSHFQ, I think the OP was asking about PUSHFQ and PUSHFD, and I assume that PUSHAD was meant to be PUSHFD.

_________________
A: What manner of man are you that can summon up fire without flint or tinder?
T: I... am an enchanter.
Back to top
View user's profile Send private message
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1973

PostPosted: Wed Feb 07, 2018 9:26 am    Post subject: Reply with quote

Right, I could.
But it would be useless to anyone using my scripts; it needs to ship with CE.

PUSHFQ is an x64 command, and does what the first post said.
I reacted for Sun's comment, as you can see, it is quoted.


Last edited by Csimbi on Wed Feb 07, 2018 9:29 am; edited 1 time in total
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 8

Joined: 24 Feb 2017
Posts: 267
Location: Right Here Buddy.

PostPosted: Wed Feb 07, 2018 9:28 am    Post subject: Reply with quote

Just put the Lua code registering the command in the table Lua on any tables you make using it.
_________________
A: What manner of man are you that can summon up fire without flint or tinder?
T: I... am an enchanter.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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