- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Instruction type CMC in 8085 Microprocessor
In 8085 Instruction set, CMC stands for “CoMplement the Carry flag”. It performs complement operation on the cy flag, and the result is stored back in the cy flag.
Mnemonics, Operand | Opcode(in HEX) | Bytes |
---|---|---|
CMC | 3F | 1 |
The result of execution of this instruction has been depicted in the following tracing table −
Before | After | |
---|---|---|
(Cy) |
1 | 0 |
Address | Hex Codes | Mnemonic | Comment |
---|---|---|---|
2001 | 3F | CMC | Complement of Cy when Cy=1 |
The timing diagram against this instruction CMC execution is as follows −

Summary − So this instruction CMC requires 1-Byte, 1-Machine Cycle (Opcode Fetch) and 4 T-States for execution as shown in the timing diagram.
- Related Articles
- Instruction type XCHG in 8085 Microprocessor
- Instruction type STC in 8085 Microprocessor
- Instruction type RLC in 8085 Microprocessor
- Instruction type RAL in 8085 Microprocessor
- Instruction type RRC in 8085 Microprocessor
- Instruction type RAR in 8085 Microprocessor
- Instruction type SPHL in 8085 Microprocessor
- Instruction type XTHL in 8085 Microprocessor
- Instruction type NOP in 8085 Microprocessor
- Instruction type LDA a16 in 8085 Microprocessor
- Instruction type STA a16 in 8085 Microprocessor
- Instruction type LDAX rp in 8085 Microprocessor
- Instruction type STAX rp in 8085 Microprocessor
- Instruction type LHLD a16 in 8085 Microprocessor
- Instruction type SHLD a16 in 8085 Microprocessor

Advertisements