Легенда:
новое сообщение
закрытая нитка
новое сообщение
в закрытой нитке
старое сообщение
|
- Напоминаю, что масса вопросов по функционированию форума снимается после прочтения его описания.
- Новичкам также крайне полезно ознакомиться с данным документом.
80x86 Bug List 12.02.04 23:58 Число просмотров: 1390
Автор: + <Mikhail> Статус: Elderman
|
Shift and Rotate operand limitations
---------------------------------------------------------------------------
Mnemonic: SHL, SAL, SHR, SAR, ROL, RCL, ROR, RCR, and all xxxD variants
Opcode : various
Bug in : 186+ will AND the shift- or rotate count with 1f before execution
NEC V20 and V30 act like 88 / 86 and do not limit the count.
Function:
The instructions mentioned above will limit the actual number of bits
shifted or rotated to the number of bits to be shifted AND 1f. The
remainder is actually shifted or rotated. A shift of 21h will actually be
a shift of 1.
This is also the case for the double shifts on 386+.
(186 and NEC difference supplied by Anthony Naggs)
80x86 Bug List
|
|
|