flat assembler
Message board for the users of flat assembler.
Index
> Main > A bug? |
Author |
|
vid 19 Nov 2007, 18:11
0x83 adds modrm16 to SIGN-EXTENDED imm8. Sign-extended 0xFF (byte -1) to word is 0xFFFF (word -1)
05 takes fixed imm16/imm32 operand (2 or 4 bytes), where 83 has 1 byte operand |
|||
19 Nov 2007, 18:11 |
|
hckr83 19 Nov 2007, 18:19
hmm...well, for 16bit, as long as modrm isn't slower, 0x83 and 0x05 are the same for 0xFFFF....hmm...
(makes note that 0x83 is sign extended) thanks for telling me... |
|||
19 Nov 2007, 18:19 |
|
vid 19 Nov 2007, 18:36
no problemo. Tomasz probably preferred 83 because it is equal good in 16bit mode, and better in 32bit mode
check out Intel Manual 2A and Intel Manual 2B. |
|||
19 Nov 2007, 18:36 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.