diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2522/CH14/EX14.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2522/CH14/EX14.1')
-rwxr-xr-x | 2522/CH14/EX14.1/exm14_1.sce | 12 | ||||
-rwxr-xr-x | 2522/CH14/EX14.1/exm14_1_output.jpg | bin | 0 -> 14769 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/2522/CH14/EX14.1/exm14_1.sce b/2522/CH14/EX14.1/exm14_1.sce new file mode 100755 index 000000000..fecdf39bd --- /dev/null +++ b/2522/CH14/EX14.1/exm14_1.sce @@ -0,0 +1,12 @@ +// page no 414
+// example no 14.1
+// INITIALIZE HYPOTHETICAL CHIP AS OUTPUT BUFFER
+clc;
+printf('MVI A,01H \n'); // Set D0=1, D1 through D7 are don't care lines.
+a=hex2dec(['1']);
+b=dec2bin(a,8);
+printf('A--> ')
+disp(b);
+printf('\n \n OUT FFH \n \n'); // write in the control register.
+printf('MVI A,BYTE1 \n \n'); // load data byte.
+printf('OUT FEH'); // send data out.
diff --git a/2522/CH14/EX14.1/exm14_1_output.jpg b/2522/CH14/EX14.1/exm14_1_output.jpg Binary files differnew file mode 100755 index 000000000..561ed8286 --- /dev/null +++ b/2522/CH14/EX14.1/exm14_1_output.jpg |