8085 INSTRUCTION SET Flashcards
Instructions
ACI (ADD IMMEDIATE TO ACCUMULATOR WITH CARRY)
OPERAND: 8-BIT DATA BYTES: 2 M-CYCLES: 2 T-STATES: 7 DESCRIPTION: THE 8-BIT DATA(OPERAND) AND THE CARRY FLAG ARE ADDED TO THE CONTENTS OF THE ACCUMULATOR.
FLAGS: ALL FLAGS ARE MODIFIED TO REFLECT THE RESULT OF THE ADDITION
ADC ( ADD REGISTER TO ACCUMULATOR WITH CARRY)
OPERAND: REG : 1, MEM: 1 BYTES: REG: 1, MEM: 1 M-CYCLES: REG: 1 , MEM: 2 T-STATES: REG: 4, MEM: 7 DESCRIPTION: THE CONTENTS OF THE OPERAND (REGISTER OR MEMORY) AND THE CARRY FLAG ARE ADDED TO THE CONTENTS OF THE ACCUMULATOR. THE CONTENTS OF THE OPERAND ARE NOT ALTERED; HOWEVER THE PREVIOUS CARRY FLAG IS RESET.
FLAGS: ALL FLAGS ARE MODIFIED TO REFLECT THE RESULT OF THE ADDITION
ADD ( ADD REGISTER TO ACCUMULATOR)
OPERAND: REG: 1, MEM: 1 BYTES: REG: 1, MEM: 1 M-CYCLES: REG: 1 , MEM: 2 T-STATES: REG: 4 , MEM: 7 DESCRIPTION: THE CONTENTS OF THE OPERAND (REGISTER OR MEMORY) ARE ADDED TO THE CONTENTS OF THE ACCUMULATOR AND THE RESULT IS STORED IN THE ACCUMULATOR. IF THE OPERAND IS A MEMORY LOCATION , THAT IS INDICATED BY THE 16-BIT ADDRESS IN THE HL REGISTER.
FLAGS: ALL FLAGS ARE MODIFIED TO REFLECT THE RESULT OF THE ADDITION
ADI (ADD IMMEDIATE TO ACCUMULATOR)
OPERAND: 8-BIT DATA BYTES: 2 M-CYCLES: 2 T-STATES: 7 DESCRIPTION: THE 8-BIT DATA ARE ADDED TO THE CONTENTS OF THE ACCUMULATOR , AND THE RESULT IS PLACED IN THE ACCUMULATOR.
FLAGS: FLAGS: ALL FLAGS ARE MODIFIED TO REFLECT THE RESULT OF THE ADDITION
JMP: JUMP UNCONDITIONALLY
OPERAND: 16-BIT BYTES: 3 M-CYCLES: 3 T-STATES: 10 DESCRIPTION: THE PROGRAM IS TRANSFERRED TO THE MEMORY LOCATION SPECIFIED BY THE 16-BIT ADDRESS. THIS IS A 3-BYTE INSTRUCTION; THE SECOND BYTE SPECIFIES THE LOWER ORDER BYTE AND THE THIRD BYTE SPECIFIES THE HIGH-ORDER BYTE.
JUMP CONDITIONALLY
JC: JUMP ON CARRY FLAG STATUS: CY = 1 JNC: JUMP ON NO CARRY FLAG STATUS: CY = 0 JZ: JUMP ON ZERO FLAG : Z = 1 JNZ: JUMP ON NO ZERO FLAG: Z = 0
[IF THE CONDITION IS NOT TRUE] THEN, *M-C: 2 *T-STATES: 7 [IF THE CONDITION IS TRUE] *M-C: 3 *T-STATES: 10
LHLD : LOAD H AND L REGISTERS DIRECT
OPERAND: 16-BIT ADDRESS BYTES: 3 M-CYCLES: 5 T-STATES: 16 FLAGS: NO FLAGS ARE AFFECTED.
DESCRIPTION: THE INSTRUC. COPIES THE CONTENT OF THE MEMORY LOCATION POINTED OUT BY THE 16-BIT ADDRESS IN REGISTER L AND COPIES THE CONTENT OF THE CONTENT OF THE NEXT MEMORY LOCATION IN REGISTER H. THE CONTENTS OF SOURCE MEMORY LOCATION ARE NOT ALTERED.
LXI: LOAD REGISTER PAIR IMMEDIATE
OPERAND: REG PAIR. 16 BIT ADDRESS DATA BYTES: 3 M-CYCLES: 3 T-STATES: 10 FLAGS: NO FLAGS ARE AFFECTED. DESCRIPTION: THE INSTRUCTION LOADS 16-BIT DATA IN THE REGISTER PAIR DESIGNATED IN THE OPERAND. THIS IS A 3-BYTE INSTRUCTION; THE SECOND BYTE SPECIFIES THE LOW-ORDER BYTE AND THE THIRD BYTE SPECIFIES THE HIGH-ORDER BYTE.
SHLD: STORE H AND L REGISTERS
OPERAND: 16 BIT ADDRESS BYTES: 3 M-CYCLES: 5 T-STATES: 16 FLAGS: NO FLAGS ARE AFFECTED.
DESCRIPTION: THE CONTENTS OF REGISTER L ARE STORED IN THE MEMORY LOCATION SPECIFIED BY THE 16-BIT ADDRESS IN THE OPERAND, AND THE CONTENTS OF THE H REGISTER ARE STORED IN THE NEXT MEMORY LOCATION BY INCREMENTING THE OPERAND.
RLC : ROTATE ACCUMULATOR LEFT
OPERAND: NONE
BYTES: 1
M-CYCLES: 1
T-STATES: 4
FLAGS: CY IS MODIFIED ACC TO THE BIT E7,S,Z,P,AC ARE NOT AFFECTED.
DESCRIPTION: EACH BINARY BIT OF THE ACCUMULATOR IS ROTATED LEFT BY ONE POSITION. BIT D7 IS PLACED IN THE POSITION OF D0 AS WELL AS IN THE CARRY FLAG.
RRC: ROTATE ACCUMULATOR RIGHT
OPERAND: NONE
BYTES: 1
M-CYCLES: 1
T-STATES: 4
FLAGS: CY IS MODIFIED ACCORDING TO THE BIT D0, S,Z, P,AC ARE NOT AFFECTED.
DESCRIPTION: EACH BINARY BIT OF THE ACCUMULATOR IS ROTATED RIGHT BY THE ONE POSITION. BIT D0 IS PLACED IN THE POSITION OF D7 AS WELL AS IN THE CARRY FLAG.
PUSH: PUSH REGISTER PAIR ONTO STACK
OPERAND: REG PAIR BYTES: 1 M-CYCLES: 3 T-STATES: 12 FLAGS: NO FLAGS ARE MODIFIED DESCRIPTION: -
POP: POP OFF STACK TO REG PAIR
OPERAND: REG PAIR BYTES: 1 M-CYCLES: 3 T-STATES: 10 FLAGS: NO FLAGS ARE MODIFIED DESCRIPTION:
ORA: LOGICALLY OR WITH ACCUMULATOR
OPERAND: REG: 1 , MEM: 1 BYTES: 1 , 1 M-CYCLES: 1 , 2 T-STATES: 4 , 7 FLAGS: Z,S, P ARE MODIFIED TO REFLECT THE RESULTS OF THE OPERATION. AC AND CY ARE RESET. DESCRIPTION:
MOV: MOVE-COPY FROM SOURCE TO DESTINATION
OPERAND: [RD, RS]/[M,RS]/[RD/M] BYTES: 1 M-CYCLES: 1 / 2 T-STATES:4 / 7 FLAGS:NO FLAGS ARE AFFECTED DESCRIPTION: