1
0
Fork 0

Work around vs.net optimzing bug

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1765
This commit is contained in:
Sjoerd van der Berg 2004-04-12 08:13:48 +00:00
parent a48880d4e4
commit 5e144aa1d6

View file

@ -240,8 +240,10 @@ void DMA_Init(Section* sec) {
for(i=0;i<8;i++) {
DmaChannels[i] = new DmaChannel(i,i>=4);
}
for (i=0;i<0x10;i++) {
Bitu mask=i<8 ? (IO_MB|IO_MW) : IO_MB;
Bitu mask=IO_MB;
if (i<8) mask|=IO_MW;
IO_RegisterWriteHandler(i,DMA_Write_Port,mask);
IO_RegisterReadHandler(i,DMA_Read_Port,mask);
if (machine==MCH_VGA) {
@ -249,20 +251,11 @@ void DMA_Init(Section* sec) {
IO_RegisterReadHandler(0xc0+i*2,DMA_Read_Port,mask);
}
}
IO_RegisterWriteHandler(0x81,DMA_Write_Port,IO_MB);
IO_RegisterWriteHandler(0x82,DMA_Write_Port,IO_MB);
IO_RegisterWriteHandler(0x83,DMA_Write_Port,IO_MB);
IO_RegisterWriteHandler(0x89,DMA_Write_Port,IO_MB);
IO_RegisterWriteHandler(0x8a,DMA_Write_Port,IO_MB);
IO_RegisterWriteHandler(0x8b,DMA_Write_Port,IO_MB);
IO_RegisterReadHandler(0x81,DMA_Read_Port,IO_MB);
IO_RegisterReadHandler(0x82,DMA_Read_Port,IO_MB);
IO_RegisterReadHandler(0x83,DMA_Read_Port,IO_MB);
IO_RegisterReadHandler(0x89,DMA_Read_Port,IO_MB);
IO_RegisterReadHandler(0x8a,DMA_Read_Port,IO_MB);
IO_RegisterReadHandler(0x8b,DMA_Read_Port,IO_MB);
IO_RegisterWriteHandler(0x81,DMA_Write_Port,IO_MB,3);
IO_RegisterWriteHandler(0x89,DMA_Write_Port,IO_MB,3);
IO_RegisterReadHandler(0x81,DMA_Read_Port,IO_MB,3);
IO_RegisterReadHandler(0x89,DMA_Read_Port,IO_MB,3);
}