DEC ss

Operation

ss <- ss - 1

Mnemonic

DEC

Operands

ss

b7b6b5b4b3b2b1b0
0 0 ss 1011

Description

The contents of register pair ss (any of the register pairs BC, DE, HL, or SP) are decremented. In the assembled object code, operand ss is specified as follows:

Register
Pair
rHex
BC00$0B
DE01$1B
HL10$2B
SP11$3B

Condition Bits Affected

None

Example

If register pair HL contains $1001, then upon the execution of

	DEC	HL

the HL register pair contains $1000.