diff options
Diffstat (limited to '2492/CH12/EX12.4/ex12_4.sce')
-rwxr-xr-x | 2492/CH12/EX12.4/ex12_4.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2492/CH12/EX12.4/ex12_4.sce b/2492/CH12/EX12.4/ex12_4.sce new file mode 100755 index 000000000..6f27144bb --- /dev/null +++ b/2492/CH12/EX12.4/ex12_4.sce @@ -0,0 +1,11 @@ +// Exa 12.4
+format('v',6)
+clc;
+clear;
+close;
+// Given data
+memory= 16;// in K
+wordBit= 8;
+// Number of address
+N= log((memory/wordBit)*1024)/log(2);
+disp(N,"The number of address lines is : ")
|