Lecture # 07 - 08
Lecture # 07 - 08
TECHNIQUES
1
LECTURE # 07 ,08
Example:
MVI B, 60H
MVI M, 40H
LDA (LOAD ACCUMULATOR) INSTRUCTION :
0000 1010
ANA M
XRA (XOR ACCUMULATOR) INSTRUCTION :
1000 0111
XRA M
ORA (OR ACCUMULATOR) INSTRUCTION :
Example: RLC.
RLC Instructions :
BEFORE EXECUTION
CY B7 B6 B5 B4 B3 B2 B1 B0
AFTER EXECUTION
B7 B6 B5 B4 B3 B2 B1 B0 B7
RRC INSTRUCTIONS
Example: RRC.
BEFORE EXECUTION
B7 B6 B5 B4 B3 B2 B1 B0 CY
AFTER EXECUTION
B0 B7 B6 B5 B4 B3 B2 B1 B0
BRANCHING INSTRUCTIONS
30
BRANCHING INSTRUCTIONS :
No operation
No operation is performed.
The instruction is fetched and decoded but no
operation is executed.
Example: NOP
HLT ( HALT ) INSRUCTION :
Halt
The CPU finishes executing the current
instruction and halts any further execution.
Example: HLT
THE END !!!
38