Question about some x86 opcodes (Developers)
> it is unclear whether the remaining three arithmetic
> instructions in this group (001=OR, 100=AND, 110=XOR) also
> accept "short" immediates, i.e., whether
> OR DI, 12h -> 83 CF 12 "short"
> is valid, or
> OR DI, 12h -> 81 CF 12 00 "long"
> must be used instead.
> There is an option in Masm:
> OPTION NOSIGNEXTEND
> and the documentation says:
> > NOSIGNEXTEND Overrides the default sign-extended opcodes for
> > the AND, OR, and XOR instructions and generates the larger
> > non-sign-extended forms of these instructions. Provided for
> > compatibility with NEC V25 and NEC V35 controllers.
Funny point 
> However, many assemblers and compilers actually do use "short" forms even
> for 8086 target! These are results of my testing:
My test:
FASM always brews the short 3-byte variant. There is no "only 8086" option in FASM, however there is an include file for this purpose http://board.flatassembler.net/download.php?id=2832 , and it doesn't affect those instructions. OTOH
OR DI, WORD $12
brews the 4-byte variant 
---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***
Complete thread:
- Question about some x86 opcodes - mht, 02.11.2008, 14:02 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Question about some x86 opcodes - Japheth, 02.11.2008, 17:51
- Question about some x86 opcodes - DOS386, 03.11.2008, 10:04
- Question about some x86 opcodes - mht, 05.11.2008, 19:54
- Question about some x86 opcodes - Rugxulo, 06.11.2008, 21:06
- Question about some x86 opcodes - mht, 08.11.2008, 08:46
- Question about some x86 opcodes - Rugxulo, 12.11.2008, 00:43
- Question about some x86 opcodes - mht, 12.11.2008, 16:54
- Question about some x86 opcodes - mht, 22.11.2008, 13:59
- Question about some x86 opcodes - mht, 12.11.2008, 16:54
- Question about some x86 opcodes - Rugxulo, 12.11.2008, 00:43
- Question about some x86 opcodes - mht, 08.11.2008, 08:46
- Question about some x86 opcodes - Rugxulo, 06.11.2008, 21:06
- Question about some x86 opcodes - mht, 05.11.2008, 19:54
Mix view