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 


[ASM] osht.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
xCodex
Grandmaster Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 891

PostPosted: Wed Jul 04, 2007 1:57 pm    Post subject: [ASM] osht. Reply with quote

osht. If anyone remembers my old thread I was looking into directly setting flags... >___>;

Code:
STC - Set Carry

        Usage:  STC
        Modifies flags: CF

        Sets the Carry Flag to 1.

                                 Clocks                 Size
        Operands         808x  286   386   486          Bytes

        none              2     2     2     2             1


Ahem.
But anyone know why this only exists for the Carry Flag, Direction Flag, and Interrupt Flag?

There's also this:
Code:
SETE/SETZ - Set if Equal / Set if Zero (386+)

        Usage:  SETE    dest
                SETZ    dest
        Modifies flags: none

        Sets the byte in the operand to 1 if the Zero Flag is set,
        otherwise sets the operand to 0.

                                 Clocks                 Size
        Operands         808x  286   386   486          Bytes

        reg8              -     -     4     3             3
        mem8              -     -     5     4             3

That kind of thing, but there's no unconditional SET operation!

You could do it the cheap way, like;
Code:
STC //set carry flag
SETC dest //set destination if CF = 1 (which it is now)


(I do know that SETZ/C are only for specific processors.)

_________________
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Wed Jul 04, 2007 6:23 pm    Post subject: Reply with quote

pushfd
pop eax
mess arround a bit with the bits in eax
push eax
popfd

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
xCodex
Grandmaster Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 891

PostPosted: Wed Jul 04, 2007 7:24 pm    Post subject: Reply with quote

Yes, I know. That was one previous theory. Another was using SAHF/LAHF (which nog_lorp) perfected.
_________________
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 programming 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