| View previous topic :: View next topic |
| Author |
Message |
yoyoyip Cheater
Reputation: 0
Joined: 09 Apr 2006 Posts: 29
|
Posted: Wed Oct 18, 2006 6:20 am Post subject: AA script can't assemble DIV instruction |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25837 Location: The netherlands
|
Posted: Wed Oct 18, 2006 6:24 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25837 Location: The netherlands
|
Posted: Wed Oct 18, 2006 6:32 am Post subject: |
|
|
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 |
|
 |
yoyoyip Cheater
Reputation: 0
Joined: 09 Apr 2006 Posts: 29
|
Posted: Wed Oct 18, 2006 7:39 am Post subject: |
|
|
| Thanks DB.
|
|
| Back to top |
|
 |
|