Professional Documents
Culture Documents
L5 Instruction Set Part 3
L5 Instruction Set Part 3
Microcontrollers (EC3L007)
2
Logical Instructions
• These instructions perform logical operations on data
stored in registers, memory and status flags.
• AND operation
• OR operation
• XOR operation
• Equality
• Greater Than
• Less Than
34
Branching Instructions
• The branching instruction alter the normal sequential
flow.
Example: CZ 2034 H.
[02/08/2019, IIT BBS] | [Srinivas Boppu] | [SES] | [EC3L007] 42
Example:
The two bytes from the top of the stack are copied into
the program counter, and program execution begins at
the new address.
Example: RZ.
[02/08/2019, IIT BBS] | [Srinivas Boppu] | [SES] | [EC3L007] 47
Return Conditionally
53
Control Instructions
• The control instructions control the operation of
microprocessor.
• Example: EI
[02/08/2019, IIT BBS] | [Srinivas Boppu] | [SES] | [EC3L007] 56
Control Instructions
• No operation is performed.
• The instruction is fetched and decoded but no operation
is executed.
• Example: NOP
• Reading:
Chapter 6 & 7, Ramesh Gaonkar