From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2522/CH15/EX15.8/exm15_8.sce | 36 +++++++++++++++++++++++++++++++++++ 2522/CH15/EX15.8/exm15_8_output1.jpg | Bin 0 -> 43932 bytes 2522/CH15/EX15.8/exm15_8_output2.jpg | Bin 0 -> 21836 bytes 3 files changed, 36 insertions(+) create mode 100755 2522/CH15/EX15.8/exm15_8.sce create mode 100755 2522/CH15/EX15.8/exm15_8_output1.jpg create mode 100755 2522/CH15/EX15.8/exm15_8_output2.jpg (limited to '2522/CH15/EX15.8') diff --git a/2522/CH15/EX15.8/exm15_8.sce b/2522/CH15/EX15.8/exm15_8.sce new file mode 100755 index 000000000..3e1cc0ea8 --- /dev/null +++ b/2522/CH15/EX15.8/exm15_8.sce @@ -0,0 +1,36 @@ +// page no 502 +// example no 15.8 +// INITIALIZATION INSTRUCTIONS FOR DMA +clc; +printf('MVI A,00000100B \n \n'); +printf('A7 A6 A5 A4 A3 A2 A1 A0 \n'); +printf('0 0 0 0 0 1 0 0 \n'); +printf('A2=1 Disable DMA \n \n'); +printf('OUT 08H \n'); +printf('MVI A,00000111B \n \n'); +printf('A7 A6 A5 A4 A3 A2 A1 A0 \n'); +printf('0 0 0 0 0 1 1 1 \n'); +printf('A7,A6=00 Demand mode \n'); +printf('A5=0 Increment address \n'); +printf('A4=0 Disable auto load \n'); +printf('A3,A2=01 Write \n'); +printf('A1,A0=11 Ch 3 \n \n'); +printf('OUT 0BH \n'); // Send to mode reg. +printf('MVI A,75H \n'); // Low order byte of starting address +printf('OUT 06H \n'); // Output to CH3 memory address reg. +printf('MVI A,40H \n'); // High order byte of starting address +printf('OUT 06H \n'); // Output to CH3 memory address reg. +printf('MVI A,FFH \n'); // Low order byte of the count 03FFH +printf('OUT 07H \n'); // Output to CH3 count reg. +printf('MVI A,03H \n'); // High order byte of the count 03FFH +printf('OUT 07H \n'); // Output to CH3 count reg. +printf('MVI A,10000000B \n \n'); +printf('A7 A6 A5 A4 A3 A2 A1 A0 \n'); +printf('1 0 0 0 0 0 0 0 \n'); +printf('A7,A6=10 DACK DREQ High \n'); +printf('A5=0 Late write \n'); +printf('A4=0 Fixed priority \n'); +printf('A3=0 Normal time \n'); +printf('A2=0 DMA enable \n') +printf('A0=0 Disable mem to mem \n \n'); +printf('OUT 08H \n'); diff --git a/2522/CH15/EX15.8/exm15_8_output1.jpg b/2522/CH15/EX15.8/exm15_8_output1.jpg new file mode 100755 index 000000000..bb2a3746b Binary files /dev/null and b/2522/CH15/EX15.8/exm15_8_output1.jpg differ diff --git a/2522/CH15/EX15.8/exm15_8_output2.jpg b/2522/CH15/EX15.8/exm15_8_output2.jpg new file mode 100755 index 000000000..9bfbba886 Binary files /dev/null and b/2522/CH15/EX15.8/exm15_8_output2.jpg differ -- cgit