1byte instruction = MOV A,B
2byte instruction = MVI A,01H
3byte instruction = STA 2030H
A two-byte instruction gives the specific function instruction in two bytes, or two words. The first specifies the opcode, which tells the microprocessor what operation will occur. The second specifies the operand, or the data that the operation is done on.
There are 74 instructions in the 8085 microprocessor.
A microprocessor know whether the next byte is an instruction or data because the microprocessor knows for what it is looking. The bus, on the other hand, for an 8085 based system, knows an opcode from data by looking at S0 and S1 when IO/M- is low. If both are high, it is an opcode, otherwise it is data.
Suppose we give a 8-bit instruction ADD B to the microprocessor then this instruction is not at all understood by microprocessor as it only accepts binary inputs so first of all it stores the instruction in the INSTRUCTION REGISTOR then it decodes this instruction ADD B to its suitable binary code 80H in the INSTRUCTION DECODER.. after converting to 80H then the microprocessor understands that .. yes i have to add the content of the resistor B with that of A(accumulator) and store the result in the accumulator A this is a small example how microprocessor operates facing the instructions
SIM stands for “Set Interrupt Mask” It is 1 byte instruction RIM stands for “Read Interrupt Mask” it is 1 byte MULTI-PURPOSE instruction.
The RST instruction is a 1 byte opcode with a 3 bit imbedded operand. There are 8 different RST instructions. Each pushes the PC on the stack, and loads the PC with the operand's value times 8. (0H, 8H, 10H, 18H, etc.)Pushing the PC on the stack and loading a new value into the PC is exactly what a CALL instruction does, so the RST instruction is a 1 byte CALL instruction. The difference between RST and CALL is that CALL is a 3 byte instruction which can go anywhere in memory in one instruction.
1 byte instruction, no operand field
The 8085 instruction set is classified into three groups according to its Word size. They are 1. One word /1 byte instructions 2. Two word / 2 byte instructions 3. Three word / 3 byte instructions
A series of data bytes or words available in a memory at consecutive locations, to be referred to collectively or individually, are called as byte strings or word strings.
It fetches the next instruction.
branch instruction
it goes to queue for next instruction