- 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
Found 558 Articles for Microprocessor
1K+ Views
In 8085 Instruction set, there are two instructions to control the Cy flag bit content. Thesemnemonics are STC and CMC. Both are 1-Byteinstructions. There hex codes are given in the following table – Mnemonics, OperandOpcode(in HEX)BytesSTC371CMC3F1Using STC instruction we can set the Cy flag bit to 1 irrespective of itsprevious value. And using CMC instruction we can complement the current value of the Cy fag bit andresult will update the current Cy flag bit value. Here STC stands for “SeT the Carry flag” and CMC stands for “CoMplement the Carry flag”. Note that, there isno dedicated instruction in 8085 instruction set ... Read More
6K+ Views
In 8085 Instruction set, logical type there is one complement instruction with the mnemonic CMA. It actually stands for “CoMplement the Accumulator”. It performs1's complement operation on the current contents of Accumulator, and the result is stored back in the Accumulator replacing its previous contents. It is to be noted that, there are no other instructions tocomplement any other register’s contents. Though it is a logicaltype of instruction, Flag bits are not affected by the execution of this instruction. It occupies only 1 Byte in memory. Mnemonics, OperandOpcode(in HEX)BytesCMA2F1Let us suppose that example, the initial content of Accumulator is AAH i.e. ... Read More
2K+ Views
In 8085 Instruction set, and specially in its logical group of instructions, we have AND, OR, XOR, NOT type of instructions. 8085 does not have instructions to perform NAND, NOR, XNOR operations directly. Now let us discuss the instructions to perform XOR operations only.To perform XORing of two numbers, 8085 imposes the restriction that one of the operands must be kept in the Accumulator. The other operand can be at any one of the following possible locations −ClassificationsExamplesThe other operand can be kept in 8-bit immediate data in the instruction.XRI 43HXRI FFHThe other 8-bit operand can be kept in a ... Read More
1K+ Views
In 8085 Instruction set, and specially in its logical group of instructions, we have AND, OR, XOR, NOT type of instructions. 8085 does not have instructions to perform NAND, NOR, XNOR operations directly. Now let us discuss the instructions to perform OR operations only.To perform ORing of two numbers, 8085 imposes the restriction that one of the operands must be kept in the Accumulator. The other operand can be at any one of the following possible locations −ClassificationsExamplesThe other operand can be kept in 8-bit immediate data in the instruction.ORI 43HORI FFHThe other 8-bit operand can be kept in a ... Read More
2K+ Views
In 8085 Instruction set, and specially in its logical group of instructions, we have AND, OR, XOR, NOT type of instructions. 8085 does not have instructions to perform NAND, NOR, XNOR operations directly. Now let us discuss the instructions to perform AND operations only.To perform ANDing of two numbers, 8085 imposes the restriction that one of the operands must be kept in the Accumulator. The other operand can be at any one of the following possible locations −ClassificationsExamplesThe other operand can be kept in 8-bit immediate data in the instruction.ANI 43HANI FFHThe other 8-bit operand can be kept in a ... Read More
17K+ Views
Let us consider we want to add two decimal numbers 38 and 45. They will be represented in BCD as 0011 1000 and 0100 0101. The addition results in 0111 1101. But the answer will be incorrect if we want to interpret this result as a BCD number. The result will be not only incorrect but also illegal as 1101, which we obtained as the last nibble in the answer is not a valid BCD number. Here, in such situations, we can use DAA to have the BCD sum as outcome. All that is required to be done is to ... Read More
792 Views
In 8085 Instruction set, and specially in its arithmetic group of instructions, we have only add and subtract instructions. 8085 does not have instructions to perform multiplication or division numbers. Now let us discuss the instructions to perform addition operations only.To perform addition of two numbers, 8085 imposes the restriction that one of the operands must be kept in the Accumulator. The other operand can be at any one of the following possible locationsClassificationsExamplesThe other operand can be kept in 8-bit immediate data in the instruction.ADI 43HADI FFHThe other 8-bit operand can be kept in a memory location and whose ... Read More
2K+ Views
INTEL 8085 has a very enriched Instruction Set. Varieties of instructions it can execute. Instructions will have different Byte counts, ranging from 1-Byte to 3-Bytes. Opcode always occupies 1-Byte in the memory. As we know that, with 8 bits for the opcode, 28 = 256 distinct opcodes are possible. In hexadecimal notation, the opcodes can range from 00H to FFH. Each opcode will correspond to an instruction. Thus from the calculation, it is possible to have 256 instructions in the instruction set of 8085. However, only 246 opcodes are implemented in 8085. They can be classified under 66 types, which ... Read More
14K+ Views
INTEL 8085 has a very enriched Instruction Set. Varieties of instructions it can execute. All these instructions can be broadly classified as follows −DescriptionNo. of opcodesNo. of instruction typesExampleData transfer Instructions8313MOV, MVI etc.Arithmetic Instructions6214ADD, SUB etc.Logical Instructions4315AND, XOR etc.Stack Instructions159PUSH, POP etc.Branch Instructions368JMP, JZ etc.I/O Instructions22IN, OUT etc.Interrupt Instructions55RST 0, RST 1 etc.Total24666Following is the table showing the list of Control instructions with their meanings.OpcodeOperandMeaningExplanationNOPNoneNo operationNo operation is performed, i.e., the instruction is fetched and decoded only.HLTNoneHalt and enter wait stateThe CPU finishes executing the current instruction and stops further execution. An interrupt or reset is necessary to exit from ... Read More
96 Views
In this section, we will see how we can use the Zilog Z-80 Microprocessor to move a block of data to another location. There is one assumption, there is sufficient distance between source and destination. So blocks are non-overlapping. Basically the block movement is not exact moving, it is copying the data to other locations.The number of items in the block is given at location 5000H, and the block is located at position 5050H.So before movement, the items in the memory is looking like this.AddressValue5000H04H...5050H89H5051H7AH5052H2FH5053H56H...Now, we are writing a program at location 8000H to move the block contents to other ... Read More
To Continue Learning Please Login
Login with Google