summaryrefslogtreecommitdiff
path: root/2522/CH7/EX7.1/exm7_1.sce
blob: 85f1c9c161554028d2c783254144680615c84e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//page no 216
//example no 7.1
//STEPS TO ADD 10 BYTES OF DATA.
clc;
disp('The micriprocessor needs :');
disp('a counter to count 10 data bytes');
disp('an index or a memory pointer to locate where data bytes are stored');
disp('to transfer data from a memory location to the microprocessor');
disp('to perform addition');
disp('registers for temporary storage of partial answers');
disp('a flag to indicate the completion of the task');
disp('to store or output the result');