SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 196

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
DEC
Function:
Description:
Example:
DEC
Operation:
Encoding:
Bytes:
Cycles:
DEC
Operation:
Encoding:
Bytes:
Cycles:
Semiconductor Group
byte
A
Rn
Decrement
The variable indicated is decremented by 1. An original value of 00 H will underflow
to 0FF H . No flags are affected. Four operand addressing modes are allowed:
accumulator, register, direct, or register-indirect.
Note:
When this instruction is used to modify an output port, the value used as the original
port data will be read from the output data latch, not the input pins.
Register 0 contains 7F H (01111111 B ). Internal RAM locations 7E H and 7F H
contain 00 H and 40 H , respectively. The instruction sequence
DEC
DEC
DEC
will leave register 0 set to 7E H and internal RAM locations 7E H and 7F H set to
0FF H and 3F H .
DEC
(A)
1
1
DEC
(Rn)
1
1
0 0 0 1
0 0 0 1
(A) – 1
(Rn) – 1
@R0
R0
@R0
0 1 0 0
1 r r r
197
Instruction Set

Related parts for SAB80C517-M16