2 Instruction Set
2 Instruction Set
2
Number System
13 H
0 0 0 1 0 0 1 1
8 bits= 1 Byte
Symbols and Abbreviations
Symbol/Abbreviations Meaning
Addr 16-bit address of the memory location.
Data 8-bit data
data 16 16-bit data
r, r1, r2 One of the registers A, B, C, D, E, H or L
A, B, C, D, H, L 8-bit register
A Accumulator
H-L Register pair H-L
B-C Register pair B-C
D-E Register pair D-E
PSW Program Status Word
Memory whose address is in H-L pair
M
[C000H] = 04 H [H-L] = C000 H,
Symbol/Abbreviations Meaning
[C000 H] = 04 H C001 H
[HL] = C000 H C002 H
C003 H
Memory
Instruction Size
● MOV A, B - 1 Byte instruction size
MOV –> 1 Byte
B (8) C (8)
D (8) E (8)
H (8) L (8)
B (8) C (8)
D (8) E (8)
H (8) L (8)
C001 H Instruction 2
Program Counter
C002 H Instruction 3
PROGRAMMING MODEL OF8085
Flags (8) Accumulator A (8)
• Stack pointer is also a 16 bit register.
B (8) C (8)
• It consist of top address of memory location called
D (8) E (8)
stack.
H (8) L (8)
C001 H C000 H
Stack Pointer
C001 H
C002 H
Stack
PROGRAMMING MODEL OF8085
Flags (8) Accumulator A (8)
• 8085 has Five flags.
• They are Zero (Z), Carry ( Cy ), Sign ( S ), Parity (P) B (8) C (8)
and Auxiliary Carry (Ac ) flag. D (8) E (8)
• The microprocessor uses these flags to test data
conditions. H (8) L (8)
B7 B6 B5 B4 B3 B2 B1 B0
S Z - AC - P - CY
Addressing Modes of 8085 :
•Eg. MOV A, M
Let A = 05 H , [HL]=C000F, [C000F]=04
After MOV A, M
A = 04 H and [C000F]=04
4. Immediate Addressing Mode
• In this mode, the operand is specified (given) within the instruction itself.
• Either 8 bit data or 16 bit data given in the instruction.
• Instructions using immediate addressing are 2 byte or 3 byte Instruction.
•Eg. 1. MVI A, 23 H
Let A = 05 H ,
A = 23 H
Eg. 2. LXI H, C002 H
Let [HL] = C000H
After LXI H, C002 H
[HL] = C002 H
5. Implicit / Implied Addressing Mode
• In this mode, address of source of data as well as address of destination of
result is fixed there is no need to give any operand along with
the instruction.
•Eg. CMA
Let A = 04 H
After CMA
A=FB H
Instruction Set
Comment:
• This instruction will load destination register with content of memory location, whose
address is stored in H-L register pair.
• The contents of memory location are not altered.
• r can be any one of the registers A, B, C, D, E, H, L.
Comment:
• This instruction will copy the content of register r to the memory location, whose address
is placed in H-L register pair.
• r can be any one of the A, B, C, D, E, H, L.
Comment:
• This instruction will load the register r with 8-bit immediate data specified in second byte
of instruction.
Comment:
• This instruction will load the memory location, whose address is stored in
• H-L pair with 8-bit immediate data specified in the second byte of instruction.
Comment:
• The byte 3 of instruction is moved into high order register (rh) of register pair rp and byte
2 is moved into low order register (rl) of register pair.
• The register pairs can be BC, DE, HL or SP.
• SP (Stack pointer) is not a valid register pair, but it can be used in LXI instruction
Comment:
• This instruction will load accumulator with content of memory location, whose address is
given in the instruction itself.
• The contents of memory location are not altered.
Comment:
• This instruction will load the content of accumulator into the memory location, whose
address is specified in the instruction.
• The contents of accumulator are not altered.
Comment:
• I this instruction, the 1st byte gives the opcode and 2nd and 3rd byte give 16-bit address
of memory location in usual convention.
• The contents of memory location whose address is specified in the instruction are loaded
into register L and the content of next memory location loaded in register H.
For example:
1. Data Transfer Group :
Comment:
• The contents of register L are transferred to the memory location whose address is
specified by byte 2 and byte 3 of the instruction.
• The contents of register H are moved to succeeding memory location.
Example: Let [H]= 32 H and [L]= 35 H
Instruction: SHLD 2100 H
After execution: [2100] = 35 H
[21011 = 32 H
1. Data Transfer Group :
Comment:
• The contents of memory location, whose address is stored in register pair rp are loaded
into accumulator.
• The content of memory location remain unchanged. rp can be B(i.e. B and C) or D(i.e. D
and E)
Example: Let [B]= 25 H, [C] =25 H => [B-C]= 2525 H and [2525]= 33 H
Instruction: LDAX B
After execution: [A] =33 H
1. Data Transfer Group :
Comment:
• The contents of accumulator are transferred to the memory location whose address is
stored in register pair rp.
• The valid register pairs are B(i.e. B&C) and D e.il D& E)
Addressing: Register
Group: Data transfer group
Bytes: 1 byte
Flag: None
Comment:
• The contents of register H are exchanged with that of register D and the contents of
register L are exchanged with that of register E.
Example: Let [ H ] = 23H, [L] = 32H, [D] = 53H and [E] = 55H
Instruction: XCHG
After execution: [H]=53 H and [L]=55H, [D]= 23 H and [E]= 32 H
2. Arithmetic Group :
Comment:
• The contents of register r are added to the content of accumulator.
• The result is stored in accumulator.
• All the flags may be affected.
Flag Register = 0 0 - 0 - 1 - 0
[D] = 35 H
2. Arithmetic Group :
2. ADD M : [ADD MEMORY CONTENT OT ACCUMULATOR]
Comment:
• The contents of accumulator are added to the content of memory location, whose
address is stored in H-L pair.
• The result is placed in accumulator.
• All flags may be affected.
Comment:
• This instructions adds the 8-bit immediate data specified in second byte of instruction to
the content of accumulator.
• All flags may be affected.
Comment:
• This instructions adds the content of accumulator to the content of register and the
content of the carry flag.
• The result is placed in accumulator.
• All flags may be affected.
Comment:
• The contents of memory location whose address place in H-L register pair and content of
Cy flag are added to the content of accumulator.
• The result is placed in accumulator.
Comment:
• This instruction adds the content of accumulator to the 8-bit immediate data specified in
second byte of instruction along with the content of carry flag.
• The result is placed in accumulator.
• All flags may be affected.
Comment:
• The contents of register r are subtracted from the content of accumulator.
• The result is placed in accumulator. Al the flags may be affected.
Example: [A]=37H
[C] = 40 H
2. Arithmetic Group :
Instruction : SUB C
1 1 1 1 0 1 1 1
[C]:40H = 0 1 0 0 0 0 0 0. 1'scomplement = 0 0 0 0 1 0 0 0
1'scomplement = 1 0 1 1 1 1 1 1 +1
+1 ----------------------------
---------------------------- 00001001
2'scomplement = 1 1 0 0 0 0 0 0
+[A]:37H = 0 0 1 1 0 1 1 1
-------------------- Result: [A] = 09 H
11110111
0
Complement carry:
←
1111 0111
1
The result, as a negative number, will be in 2's
complement and thus the carry (Borrow) flag is
Flags: S = 1 , Z = 0 , Ac = 0 set.
P =0, Cy=1
2. Arithmetic Group :
Comment:
The content of memory of memory location, whose address stored in H-L register pair is subtracted from
the content of accumulator. The result is placed in the accumulator.
Comment:
• The 8-bit immediate data specified in the second byte of the instruction si subtracted from the content
of accumulator.
• Result is placed in accumulator.
• All the flags may be affected.
Comment:
• The contents of register r and carry bit are subtracted from the contents of accumulator.
• The result is placed in accumulator.
• All the flags may be affected.
Comment:
• The contents of memory location whose address is stored in H-L pair along with carry bit are
subtracted from the contents of accumulator.
• Result is placed in accumulator.
• All the flags may be affected.
Comment:
• The 8-bit immediate data, specified in the second byte of instruction is subtracted along with the carry
bit from the content of accumulator.
• The result is placed in accumulator.
• Al the flags may be affected.
Comment:
• The contents of register r incremented by one and the results are stored in the same place.
• Al the flags except carry flag may be affected.
• The register r can be A, B, C, D, E, Hand L.
Comment:
The content of memory location whose address is stored in H-L register pair is incremented by one and
result again i.e stored on the same place.
Comment:
The content of memory location whose address is stored in H-L register pair is incremented by one and
result again i.e stored on the same place.
Comment:
• This instruction increments the content of register pair rp by .
• 1 No flags are affected. The instruction views the contents of the two registers as a 16-bit number.
Comment:
• The content of register is decremented by 1 and the results are stored in the same place.
Comment:
• This instruction decrements the content of memory location, whose address is stored in H-L pair by
1and the result is placed at same place.
• All flags except carry flags are affected.
Comment:
• This instruction decrements the content of register pair rp by 1.
• No flags are affected.
• This instruction views the contents of the two registers as a 16-bit number.
Comment:
• The contents of register pair rp are added to the contents of H-L pair.
• Result is placed in register H and L.
• Only carry flag is affected.
Comment:
The eight bit number in the accumulator is adjusted to form two four-bit Binary coded Decimal digits by this
instruction. It can be done by following process:
1) If the value of the LSB of the A (A3 - A0) is > 9 or if the AC flag is set =1, 6 (06) is added to LSB of A
2) If the value of MSB of the A (A7 - A4) is > 9 or if the Cy =1, 6 (60) is added to the MSB of A
3) If both 4 LSBs and 4 MSBs of A are > 9 or flags Ac=1 and Cy=1 are set respectively then 66 add to
the accumulator content.
1. LSB > 9 or AC =1 then 6 are added to LSB
2. MSB > 9 or Cy =1 then 6 are added to MSB
3. LSB > 9 and MSB >9 and AC=1 and Cy=1 then 66 to A
2. Arithmetic Group :
[ Note : This instruction must always follow an addition instruction for two BCD numbers. It
can not be used to adjust results after subtraction.]
Example:
4B = 0 1 0 0 1 0 1 1
+06 = 0 0 0 0 0 1 1 0
--------------------------------
51 = 0 1 0 1 0 0 0 1
Comment:
• The contents of accumulator are logically ANDed with the content of register r.
• Result is placed in accumulator.
• S, Z, and P flags are modified.
• The Cy flag is reset and Ac flag is set.
Instruction: ANA B
3. Logical Group :
25H = 0 0 1 0 0 1 0 1
31 H = ^ 0 0 1 1 0 0 0 1
---------------------
21 H = 0 0 1 0 0 0 0 1
Comment:
• The contents of accumulator are logically ANDed with the content of memory location, whose address
is stored in H-L pair.
• The result is placed in accumulator. The S, Z and P flags are modified.
• The Cy flag is reset and the Ac flag is set.
Comment:
• The contents of accumulator are logically ANDed with the 8-bit immediate data specified in the second
byte of the instruction.
• The result is placed in the accumulator.
• The S, Z, and P flags are modified. Cy flag is cleared and Ac flag is set.
Comment:
• The contents of accumulator are logically Inclusive ORed with the contents of register r.
• The result is placed in accumulator.
• r may be any one of A, B, C, D, E, H and L registers.
• Ac and Cy flags are reset.
Instruction: ORA B
[A]: 29H = 0 0 1 0 1 0 0 1
OR [B]:35H = 0 0 1 1 0 1 0 1
------- -------------------
0 0 1 1 1 1 0 1 = 3D H
Comment:
• The contents of accumulator are logically ORed with the contents of memory location, whose address
is placed in H-L register pair.
• The result is placed in accumulator.
• Ac and Cy flags are reset.
Example : [A] = 03 H
[H-L] = D000H
[D000] = 81 H
Instruction: ORA M
3. Logical Group :
03H = 0 0 0 0 0 0 1 1
OR 81H = 1 0 0 0 0 0 0 1
-----------------------------
83H = 1 0 0 0 0 0 1 1
After execution: A = 83 H
Flags : S = 1, Z = 0 , P = 0 , Cy = 0 , Ac = 0
3. Logical Group :
6. ORI data : [LOGICALLY OR IMMEDIATE]
Comment:
• The contents of accumulator are logically ORed with the 8-bit immediate data specified in the second
byte of the instruction.
• The result is placed in accumulator.
• The S, Z and P flags are affected.
• The Cy and Ac flags are reset.
[A] = 35H = 0 0 1 1 0 1 0 1
OR 99H = 1 0 0 1 1 0 0 1
--------------------
1 0 1 1 1 1 0 1 = BDH
Flags : S = 1, Z=0 , P = 1, Ac = 0, Cy = 0
3. Logical Group :
7. XRA r : [EXCLUSIVE OR WITH ACCUMULATOR]
Comment:
• The contents of accumulator are logically exclusive-ORed with the contents of register r.
• The result is placed in accumulator.
• The r may be any one of the A, B, C, D, E, H and L register.
• The Cy and Ac flags are reset.
[A] : 25H = 0 0 1 0 0 1 0 1
XOR [B] : 39H = 0 0 1 1 1 0 0 1
--------------------
0 0 0 1 1 1 0 0 = 1CH
After execution: [A]= 1CH
Flags : S= 0, Z = 0, P = 0, Ac = 0, Cy = 0
3. Logical Group :
8. XRA M : [EXCLUSIVE OR WITH MEMORY]
Comment:
• The content of the accumulator are logically exclusive OR-ed with the Content of the memory location
whose address placed in H-L register pair.
• The results placed in the accumulator.
• The Cy and Ac flags are reset.
[A] : 77H = 0 1 1 1 0 1 1 1
XOR [D000]:56H = 0 1 0 1 0 1 1 0
--------------------
00100001
After execution: [A] = 21 H
Flags : S= 0, Z= 0, P = 1, Cy = 0, Ac = 0
3. Logical Group :
9. XRI data : [EXCLUSIVE OR IMMEDIATE WITH ACCUMULATOR]
Comment:
• The content of accumulator are logically exclusive- OR'ed with the 8-bit immediate data specified in
second byte of instruction.
• The result is placed in accumulator.
• The S, Z, and P flags are affected. The Cy and Ac flags are reset.
[A] : 5B H = 0 1 0 1 1 0 1 1
Data 35H = 0 0 1 1 0 1 0 1
--------------------
0 1 1 0 1 1 1 0 = 6E H
After execution: [A] = 6E H
Comment:
• This instruction compares the content of the register with content of accumulator.
• Comparison is done using subtraction of content of register from the content of accumulator.
• The content of accumulator remains unchanged.
• The result of comparison is shown by setting the flags as :
Comment:
• This instruction compares the content of memory location whose address is stored in H-L pair with the
content of accumulator by subtracting the content of memory location from the content of accumulator.
The content of accumulator remains unchanged.
• The result of comparison is shown by setting the flags as below:
Comment:
• This instruction compares the 8-bit immediate data, specified in the second byte of instruction, by
subtracting it from the contents of accumulator.
• The content of accumulator remains unchanged.
• The result of comparison is shown by setting flags as :
Comment:
• The contents of accumulator are rotated to left by one bit position.
• The bit A7 is stored in bit A0 as well as in carry flag.
• It is shown in following figure :
3. Logical Group :
A7 A0
Before instruction: 1 0 0 1 0 0 1 1
0
Cy Accumulator
Cy 1 0 0 1 0 0 1 1 1
Accumulator
3. Logical Group :
14. RRC : [ROTATE ACCUMULATOR RIGHT]
Comment:
• The contents of accumulator are rotated right by one bit position.
• The bit A0 of accumulator is stored in the bit A7 as well as in carry flag.
• Only the Cy flag is affected.
• The function of RRC is shown in the following figure.
3. Logical Group :
A7 A0
0 1 0 0 0 0 0 1 1
Cy Accumulator
Instruction: RRC
A7 A0
After execution:
1 1 1 0 0 0 0 0 1
Cy Accumulator
Comment:
• This instruction rotates the content of accumulator one position left through carry flag.
• The carry flag status is stored in bit A0 of accumulator and the bit A7 of accumulator is
stored in carry flag.
• The function of RAL is shown in following figure:
3. Logical Group :
A7 A0
1 0 0 1 0 1 0 0 1
Cy Accumulator
Instruction: RAL
A7 A0
0 0 1 0 1 0 0 1 1
Cy Accumulator
Thus [Al=53H
[Cy] = 0
3. Logical Group :
16. RAR : [ROTATE ACCUMULATOR RIGHT THROUGH CARRY]
Comment:
• The contents of the accumulator are rotated to right by one bit position through carry flag.
• The carry flag status is stored in bit A7 of accumulator and the bit A0 of accumulator is
stored in carry flag.
• Only the carry flag is affected.
• The function of RAR is shown in the following figure.
3. Logical Group :
0 0 0 1 1 1 0 1 1
Cy Accumulator
Instruction: RAR
1 0 0 0 1 1 1 0 1
Cy
Accumulator
Thus [A]= 1DH
[Cy] =1
3. Logical Group :
17. CMA : [COMPLEMENT THE ACCUMULATOR]
Comment:
• This instruction complements the content of accumulator.
• Result is placed in the accumulator.
Comment:
• The carry flag is complemented.
• No other flags are affected.
Format: [Cy] ← 1
Addressing: Implied addressing
Group: Logical group
Bytes: 1 byte
Flag: Cy
Comment:
• This instruction sets carry flag to 1.
• No other flags are affected.
Comment:
• The control is transferred unconditionally to the memory location, whose address is
specified in the instruction.
4. Branching Group :
1. JMP addr :
Comment:
• In conditional jump instructions, the jump is taken only if the condition is true.
4. Branching Group :
•The conditional jump instructions and conditions are as given below.
Comment:
• CALL instruction is used to call subroutine unconditionally.
• Before the control is transferred to the subroutine, the address of next instruction to be
executed the main program is stored in the stack.
• The contents of SP are decremented by 2.
• Then, the program jumps to the subroutine whose starting address is specified in the
instructions.
4. Branching Group :
3. CALL addr :
Main Program :
C000H C001 H MVI A, 01H A=01 H
C002 H JMP D000 H In JMP backup is not created
C003 H MOV B,A
C004 H HLT
Subroutine Program
Comment:
• CALL instruction is used to call subroutine unconditionally.
• Before the control is transferred to the subroutine, the address of next instruction to be
executed the main program is stored in the stack.
• The contents of SP are decremented by 2.
• Then, the program jumps to the subroutine whose starting address is specified in the
instructions.
4. Branching Group :
Main Program :
C000H C001 H MVI A, 01H A=01 H
C002 H CNZ D000 H
C003 H MOV B,A
C004 H HLT
Subroutine Program
Comment:
• The contents of the memory location, whose address is specified in stack pointer are
moved to the lower-order byte of the program counter.
• The content of the memory location whose address is one more than the content of SP,
moved to the higher order byte of program counter.
• The contents of the stack pointer are incremented by 2.
4. Branching Group :
6. Recondition: [Conditional RETURN]
Comment:
• If the specified condition is true, the actions specified in RET are performed Otherwise
the control continues sequentially.
4. Branching Group :
Main Program :
C000H C001 H MVI A, 01H A=01 H
C002 H CNZ D000 H
C003 H MOV B,A
C004 H HLT
Subroutine Program
Comment:
• Control is transferred to the instruction whose address is 8 times the content of n.
• These instructions are used with interrupts
• Example : RST 2
n=2 => n*8 => 2*8 => 16 => 0010 H
4. Branching Group :
Comment:
• This instruction moves the content of register H to higher order byte of program counter and
the content of register L to the lower order byte of program counter.
• This instruction is equivalent to a one-byte unconditional jump instruction, whit jump
address. stored in the H-L pair.
Comment:
a) The contents of the higher order register of register pair rp are moved to memory
location, whose address is one less than the content of stack pointer.
b) The contents of the low order register of register pair r p are moved to the location whose
address is two less than the content of stack pointer.
c) The stack pointer is decremented by two. rp may be any one of the B(B &C), DD(&E), H
(H & L).
5. Machine Control Group:
stack stack
D013 SP D013 55
D014 D014 25
SP D015 02 D015 02
10 D016
10
D016
5. Machine Control Group:
2. PUSH PSW: [PUSH ACCUMULATOR AND FLAG REGISTER ON STACK]
Comment:
a) The contents of accumulator are moved to the memory location, whose address is one
less than the content of stack pointer.
b) The contents of processor status word (flag register) are moved to the memory location,
whose address is two less than the content of stack pointer.
c) The stack pointer is decremented by 2.
5. Machine Control Group:
Example: Let [A] = 03 H and Flag Register , [SP]= D015 H
Instruction: PUSH PSW
After execution: [D014] = 3 H, [D013] = 25 H
[SPI = D013 H
B7 B6 B5 B4 B3 B2 B1 B0
Flag Register 1 0 x 1 x 0 x 1
S Z AC P CY
SP-2=D015-2
=> D013 1 0 x 1 x 0 x 1
7 6 5 4 3 2 1 0
stack
stack
D013 SP D013 Flag register value
D014
D014 03
D015
SP D015 02 02
D016
10 10
D016
5. Machine Control Group:
3. POP rp : [POP OFF STACK TO REGISTERPAIR]
Comment:
a) The contents of the memory location, whose address is specified by the stack pointer are
moved to low order register of register pair rp.
b) The contents of the memory location, whose address is one more than the content of
stack pointer are moved to high order register of register pair rp.
c) The stack pointer is incremented by 2.rp may beany one of the pairs B(B &C), D(D &E)
and H(H &L)
5. Machine Control Group:
stack stack
SP D013 D013
55
D014 25 D014
D015 02 SP D015 02
10 D016
10
D016
5. Machine Control Group:
4. POP PSW : [POP OFF STACK TO ACCUMULATOR AND FLAG REGISTER]
Comment:
a) The contents of the memory location, whose address is specified by the content
of register stack pointer are used to restore the condition flags.
b) The contents of memory location, whose address is one more than stack pointer
are moved to accumulator.
c) The contents of stack pointer are incremented by 2.
5. Machine Control Group:
[L] ←
←
Format: [SP]
[H] ←
←
[[SP] + 1]
Comment:
a) The contents of the L register are exchanged with the content of the memory
location, whose address is stored in stack pointer.
b) The contents of the H register are exchanged with the contents of the memory location,
whose address is one more than the contents of the stack pointer.
c) Content of SP are not altered.
5. Machine Control Group:
AB ← SP
CD
Instruction: XTHL
[H]= CD H and [L]= AB H
FE ← SP
20
5. Machine Control Group:
Addressing: Register
Group: Machine control group [stack operation]
Bytes: 1 byte
Flag: None
Comment:
a) This instruction copies the content of register L into lower order byte of stack pointer and
the content of register H into higher order byte stack pointer.
b) The contents of register H and L are not affected.
c) This instruction is used for initializing the stack pointer.
5. Machine Control Group:
Comment:
• When this instruction is executed, microprocessor sends 8-bit port address on lower
order address bus ie. A0 to A7.
• Then, the 8-bit data placed on the 8-bit bidirectional data bus by the specified port is
moved to accumulator.
• e.g. IN 10 H. [10 H] = 40 H
• [A] = 40 H
5. Machine Control Group:
2. OUT port : [OUTPUT 8-BIT DATA FROM ACCUMULATOR TO AN OUTPUT PORT]
Comment:
• When this instruction is executed, microprocessor sends 8-bit port address on the lower
order address bus AD, to AD.
• 8-bit data is then transferred from accumulator to selected port.
Example: Let A= 40 H
OUT 10 H
[10 H] = 40 H
Comment:
• EI means Interrupt Enable.
• The interrupt system is enabled following the execution of the instruction next to El and all
interrupts are enabled.
5. Machine Control Group:
4. DI : [DISABLE INTERRUPT]
Comment:
• DI means disable interrupts.
• As soon as DI instruction is executed, the interrupt, system is disabled.
• Interrupts are not recognized during the DI instruction.
5. Machine Control Group:
5. HLT : [HALT AND ENTER WAIT STATE]
Comment:
• When HLT instruction is executed, the processor is stopped.
• The register and flags are unaffected.
• This instruction is used to stop MPU.
• It is waiting for a peripheral device to finish its task and interrupt the processor. This is
generally the last instruction of our assembly language program.
• An interrupt or reset is necessary to exit from Halt state.
5. Machine Control Group:
6. NOP : [HALT AND ENTER WAIT STATE]
Comment:
• When this instruction is executed, no operation is performed, only this instruction is
fetched and decoded.
• This instruction do not affect flags or content of registers.
• This instruction is useful to produce a time delay in a timing loop.
5. Machine Control Group:
7. RIM : [READ INTERRUPT MASKI]
Comment:
• This is a multipurpose instruction used to read the status of interrupts 7.5, 6.5, 5.5 and
read serial data input bit.
• The instruction loads eight bits in the accumulator with the following interpretations:
5. Machine Control Group:
7. RIM : [READ INTERRUPT MASKI]
Comment:
• This is a multipurpose instruction used to read the status of interrupts 7.5, 6.5, 5.5 and
read serial data input bit.
• The instruction loads eight bits in the accumulator with the following interpretations:
5. Machine Control Group:
7. RIM : [READ INTERRUPT MASKI]
5. Machine Control Group:
Example: After the execution of instruction RIM, the accumulator contained 49H. Explain
the accumulator contents.
5. Machine Control Group:
8. SIM : [SETINTERRUPT MASK]
Comment:
• This is a multipurpose instruction and used to implement the 8085 interrupts (RST 7.5,
6.5 and 5.5) and serial data output.
• The instruction interrupts the accumulator contents as follows :
5. Machine Control Group:
8. SIM : [SETINTERRUPT MASK]
5. Machine Control Group:
• SOD : Serial Output Data: Bit Dr of the accumulator is latched into the SOD output line
and made available to a serial peripheral if bit D6 = 1.
• SOE : SOD Enable : If this bit = 1, it enables the serial output. To implement serial
output, this bit needs to be enabled.
• R7.5 : Reset RST 7.5: If this bit =1, RST 7.5 flip-flop is reset. This is an additional control
to reset RST 7.5.
• MSE : Mask Set Enable: If this bit is high, it enables the functions of bits D 2, D1, D0. This
is a master control over all the interrupt masking bits. If this bit is low, bits D2, D1 and
D0 do not have any effect on the masks.
5. Machine Control Group: