English
Language : 

DR805X Datasheet, PDF (31/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
- 31 -
3.10. DEC
Instruction: DEC byte
Function: Decrement byte
Description: 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.
3.10.1.
DEC A
Operation: (PC) ← (PC) + 1
(A) ← (A) - 1
Bytes:
1
Cycles:
2
Encoding:
00010100
3.10.2.
DEC RN
Operation: (PC) ← (PC) + 1
(Rn) ← (Rn) - 1
Bytes:
1
Cycles:
3
Encoding:
00011 r r r
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.