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 


Bug in assembler instruction

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

Joined: 16 Oct 2005
Posts: 395
Location: DEAD

PostPosted: Mon Jun 22, 2009 7:11 pm    Post subject: Bug in assembler instruction Reply with quote

found this bug in intruction fnstsw ax

BUG

Code:
  (mnemonic:'FNSTSW';opcode1:eo_reg7;paramtype1:par_m16;bytes:1;bt1:$dd),
  (mnemonic:'FNSTSW';paramtype1:par_ax;bytes:3;bt1:$9b;bt2:$df;bt3:$df),


Autoassembler write this empy code and a by 9b look picture and no restore the original code.

ORIGINAL CODE



autoaseembler code:

Code:
[ENABLE]
alloc(newmem,256) //2kb should be enough
label(returnhere)
label(exit)
fullaccess(00400022,4)
fullaccess(0040019E,4)
fullaccess(004001BD,4)

exename.exe+2665f9:
jmp newmem
returnhere:

newmem:
pushfd
pushad
mov [0040019E],edi
cmp dword ptr [00400022],01
mov dword ptr [00400022],01
jne newmem+22
mov [edi+54],42c80000
cmp dword ptr [004001BD],01
mov dword ptr [004001BD],01
jne newmem+49
mov [edi+00000118],3f800000
mov [edi+00000110],3f800000
popad
popfd
fcom dword ptr [edi+54]
fnstsw ax

exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
exename.exe+2665f9:
fcom dword ptr [edi+54]
fnstsw ax


enabling code and bug:

code enabled



and bug in enabled code



any solution for this bug?, can i solved this is assembler module scr in ce 5.5?

fldz same problem, assembler write fld1 no fldz

BUG SOLVED IN SCR EDIT

for FNSTSW

Code:

(mnemonic:'FNSTSW';paramtype1:par_ax;bytes:2;bt1:$df;bt2:$e0),


and for FLDZ

Code:
(mnemonic:'FLDZ';bytes:2;bt1:$d9;bt2:$ee),


thanks to all

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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