THE 80286 INSTRUCTION SET

DEC-Decrement by 1

Opcode

I!'structlon

Clocks

Description

FE

/1

DEC eb

2,mem=7

Decrement EA byte by 1

FF

/1

DEC ew

2,mem=7

Decrement EA word by 1

48+

rw

DEC rw

2

Decrement word register by 1

FLAGS MODIFIED

Overflow, sign, zero, auxiliary carry, parity

FLAGS UNDEFINED

None

OPERATION

1 is subtracted from the operand. Note that the carry flag is not changed by this instruction. If you want the carry flag set, use the SUB instruction with a second operand of 1.

PROTECTED MODE EXCEPTIONS

#GP(O) if the operand is in a non-writable segment. #GP(O) for an illegal memory operand effective address in the CS, DS, or ES segments; #SS(O) for an illegal address in the SS segment.

REAL ADDRESS MODE EXCEPTIONS

Interrupt 13 for a word operand at offset OFFFFH.

8-38

Page 248
Image 248
Intel 80287, 80286 manual DEC-Decrement by, Opcode Structlon Clocks Description