Download presentation
Presentation is loading. Please wait.
1
Lecture 24
2
DMA Request Register
3
DMA Mask–1 Register
4
DMA Mask–2 Register
5
DMA Mode Register
6
Setup & Query of DMA Channels
7
High Address Nibble/Byte
8
#include <dos.h>
#include <bios.h> char st[80]; unsigned long int temp; unsigned int i; unsigned int count=48; void main (void) { temp=(unsigned long int)_DS; temp = temp << 4L; i = *((unsigned int *)(&temp)); temp = temp>>16L;
9
outportb (0x81,*((unsigned char *)(&temp)));
outportb(0x06,*(((unsigned char *)(&i)))); outportb(0x06,*(((unsigned char *)(&i))+1)); count--; outportb(0x07,*((unsigned char *)(&count))); outportb(0x07,*(((unsigned char*)(&count))+1)); outportb(0x0b,0x0b); outportb(0x08,0); outport(0x0a,3); getch(); }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.