Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre

MICROCONTROLLER TUTORIALS - 8052

Videos

Products

Sitemap

Circuits

Tutorials

8051

Introduction

Chapter 1
Types of Memory

Chapter 2
Special Function Registers

Chapter 3
Basic Registers

Chapter 4
Addressing Modes

Chapter 5
Program Flow

Chapter 6
Low Level Information

Chapter 7
Timers

Chapter 8
Serial Port Operations

Chapter 9
Interrupts

Additional Features in 8052

8052 Instruction Set

8051 / 8052 Microcontroller
Instruction Set 
DEC - Decrement Register

Operation: DEC
Function: Decrement Register
Syntax: DEC register

 

Instructions OpCode Bytes Cycles Flags
DEC A 0x14 1 1 None
DEC iram addr 0x15 2 1 None
DEC @R0 0x16 1 1 None
DEC @R1 0x17 1 1 None
DEC R0 0x18 1 1 None
DEC R1 0x19 1 1 None
DEC R2 0x1A 1 1 None
DEC R3 0x1B 1 1 None
DEC R4 0x1C 1 1 None
DEC R5 0x1D 1 1 None
DEC R6 0x1E 1 1 None
DEC R7 0x1F 1 1 None

 

Description: DEC decrements the value of register by 1. If the initial value of register is 0, decrementing the value will cause it to reset to 255 (0xFF Hex). Note: The Carry Flag is NOT set when the value "rolls over" from 0 to 255.

See Also: INC, SUBB, Instruction Set

 
  <<< Click here to come back on (8051 / 8052 - Instruction Set)
 

<<<<  Back to 8051 / 52  Microcontroller Tutorial