ISA DMA: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 528: | Line 528: | ||
</pre> |
</pre> |
||
'''Comment: Due to problems with autoinit on real hardware and MS Virtual PC, you |
'''Comment: Due to problems with autoinit on real hardware and MS Virtual PC, you might better avoid autoinit and use this code:''' |
||
<pre> |
<pre> |
||
Line 534: | Line 534: | ||
out 0x0a, 0x06 ; mask DMA channel 2 |
out 0x0a, 0x06 ; mask DMA channel 2 |
||
out 0x0b, 0x4A ; 01001010 |
out 0x0b, 0x4A ; 01001010 |
||
; single transfer, address increment |
; single transfer, address increment, write, channel2) |
||
out 0x0a, 0x02 ; unmask DMA channel 2 |
out 0x0a, 0x02 ; unmask DMA channel 2 |
||
ret |
ret |
||
Line 541: | Line 541: | ||
out 0x0a, 0x06 ; mask DMA channel 2 |
out 0x0a, 0x06 ; mask DMA channel 2 |
||
out 0x0b, 0x46 ; 01000110 |
out 0x0b, 0x46 ; 01000110 |
||
; single transfer, address increment |
; single transfer, address increment, read, channel2) |
||
out 0x0a, 0x02 ; unmask DMA channel 2 |
out 0x0a, 0x02 ; unmask DMA channel 2 |
||
ret |
ret |