Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Mon Jun 22, 2009 7:11 pm Post subject: Bug in assembler instruction |
|
|
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.
 |
|