If the microprocessor is a powerful device in data-processing,
it can also be the most dummiest device ever invented. A microprocessor
cannot do anything without the program.
The microprocessor does only 2 things, Fetch data and Execute
data.
The four (4) steps under fetch and execute are as follows;
- Read data pointed by the program counter and store it to the
instruction register .
- Increment the program counter.
- Decode/Execute the data at instruction register.
- Goto 1.
Consider this program below;
Mem
0000 DB IN 12
0001 12
0002 D3 OUT 11
0003 11
