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 


AA script can't assemble DIV instruction

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

Joined: 09 Apr 2006
Posts: 29

PostPosted: Wed Oct 18, 2006 6:20 am    Post subject: AA script can't assemble DIV instruction Reply with quote

Hi DarkByte,

I just found out that the following code cant assemble in AA script

alloc(test, 16)
test:
div [esi+C]

I found out the opcode from assembleunit F7 7E 0C, which turn out to instruction idiv [esi+C], the correct opcode should be F7 76 0C.

May I know where is the place to edit ModRM byte to fix this bug?


Last edited by yoyoyip on Wed Oct 18, 2006 7:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Oct 18, 2006 6:24 am    Post subject: Reply with quote

assemblerunit.pas
(look at the array of instructions and their first few bytes)

_________________
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


Last edited by Dark Byte on Wed Oct 18, 2006 6:34 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Oct 18, 2006 6:32 am    Post subject: Reply with quote

this'll fix it:
find
Code:

  (mnemonic:'DIV';opcode1:eo_reg7;paramtype1:par_rm8;bytes:1;bt1:$f6),
  (mnemonic:'DIV';opcode1:eo_reg7;paramtype1:par_rm16;bytes:2;bt1:$66;bt2:$f7),
  (mnemonic:'DIV';opcode1:eo_reg7;paramtype1:par_rm32;bytes:1;bt1:$f7),

and change it to:

Code:

  (mnemonic:'DIV';opcode1:eo_reg6;paramtype1:par_rm8;bytes:1;bt1:$f6),
  (mnemonic:'DIV';opcode1:eo_reg6;paramtype1:par_rm16;bytes:2;bt1:$66;bt2:$f7),
  (mnemonic:'DIV';opcode1:eo_reg6;paramtype1:par_rm32;bytes:1;bt1:$f7),

_________________
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
yoyoyip
Cheater
Reputation: 0

Joined: 09 Apr 2006
Posts: 29

PostPosted: Wed Oct 18, 2006 7:39 am    Post subject: Reply with quote

Thanks DB.
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 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