flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [solved] imul ebx,2 |
Author |
|
AsmGuru62 08 Sep 2011, 19:51
Intel Manual lists these instructions:
IMUL r32,r32,imm8 IMUL r32,imm8 And both of these have exact same encoding. Load OLLYDBG (or other debugger) and try these two. You will see the same instruction bytes for both. |
|||
08 Sep 2011, 19:51 |
|
ouadji 08 Sep 2011, 20:28
Quote: Intel Manual lists these instructions: Volume 2A - Instruction Set Reference, A-M 253666-038US - April 2011 |
|||
08 Sep 2011, 20:28 |
|
AsmGuru62 08 Sep 2011, 21:46
It is been removed from the latest manual, but my old manual from 2007 still has it. I am thinking that Intel removed it, because it is the same code as IMUL r32,r32,imm8. They removed redundant information. It properly compiles into longer version - there is no bug(s) here. Not in manuals and not in FASM itself. |
|||
08 Sep 2011, 21:46 |
|
ouadji 08 Sep 2011, 21:56
ok, understood, thank you AsmGuru62 edit: IMUL r32, imm32 works too. Code: ;http://www.ousob.com/ng/iapx86/ngce71.php 69 /r iw IMUL r16,imm16 ; 186+ 69 /r iw IMUL r16,r/m16,imm16 ; 186+ 69 /r id IMUL r32,imm32 ; 386+ <----- 69 /r id IMUL r32,r/m32,imm32 ; 386+ 6B /r ib IMUL r16,imm8 ; 186+ 6B /r ib IMUL r16,r/m16,imm8 ; 186+ 6B /r ib IMUL r32,imm8 ; 386+ <----- 6B /r ib IMUL r32,r/m32,imm8 ; 386+ |
|||
08 Sep 2011, 21:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.