The MP is a programmable digital device designed wid registers, flip-flops & timing elements. The MP has a set of instructions designed internally to manipulate data , control timing of various operations & communicate with such peripherals(devices as memory & I/O) .The internal logic design of MP called its architecture determines how and when various operations are performed by MP.
The system bus provides path for flow of binary informations (data and instructions).
The accumulator connects data bus & ALU ( ALU performs all data manipulations such as incrementing a no. or adding 2 no.s etc). Temporary register feeds ALU's other input, this register is invisible to programmer & is controlled automatically by MP control circuitary.
Flags are collection of flip-flops that indicates certain characteristic of result of most recent airthmetic and logic operation performed by ALU.
For ex- 0 (zero flag) is set if result of an operation is zero. Zero flag is tested by JZ instruction .
The system bus provides path for flow of binary informations (data and instructions).
The accumulator connects data bus & ALU ( ALU performs all data manipulations such as incrementing a no. or adding 2 no.s etc). Temporary register feeds ALU's other input, this register is invisible to programmer & is controlled automatically by MP control circuitary.
Flags are collection of flip-flops that indicates certain characteristic of result of most recent airthmetic and logic operation performed by ALU.
For ex- 0 (zero flag) is set if result of an operation is zero. Zero flag is tested by JZ instruction .
JZ instruction (Add/label):-
- Jump statement- Jump to address if zero is encountered.
- The instruction register , instruction decoder ,control & timing logic, program counter are used for fetching instruction from memory and directing their execution.
No comments:
Post a Comment