Concept Flow - Data processing instructions (ADD, SUB, MOV, CMP)
Fetch Instruction
Decode Instruction Type
Is it ADD?
Yes→Perform Addition
Update Flags
Write Result
Is it SUB?
Yes→Perform Subtraction
Update Flags
Write Result
Is it MOV?
Yes→Move Value
Update Flags
Write Result
Is it CMP?
Yes→Compare Values
Update Flags Only
No Write Back
Next Instruction
The processor fetches and decodes the instruction, then performs the operation (ADD, SUB, MOV, CMP), updates condition flags, and writes results if needed.
