trunk/src/mess/machine/at.c
| r18032 | r18033 |  | 
|---|
| 163 | 163 |  | 
| 164 | 164 | READ8_MEMBER(at_state::pc_dma_read_byte) | 
| 165 | 165 | { | 
|  | 166 | address_space& prog_space = m_maincpu->space(AS_PROGRAM); // get the right address space | 
| 166 | 167 | if(m_dma_channel == -1) | 
| 167 | 168 | return 0xff; | 
| 168 | 169 | UINT8 result; | 
| 169 | 170 | offs_t page_offset = (((offs_t) m_dma_offset[0][m_dma_channel]) << 16) & 0xFF0000; | 
| 170 | 171 |  | 
| 171 |  | result = space.read_byte(page_offset + offset); | 
|  | 172 | result = prog_space.read_byte(page_offset + offset); | 
| 172 | 173 | return result; | 
| 173 | 174 | } | 
| 174 | 175 |  | 
| 175 | 176 |  | 
| 176 | 177 | WRITE8_MEMBER(at_state::pc_dma_write_byte) | 
| 177 | 178 | { | 
|  | 179 | address_space& prog_space = m_maincpu->space(AS_PROGRAM); // get the right address space | 
| 178 | 180 | if(m_dma_channel == -1) | 
| 179 | 181 | return; | 
| 180 | 182 | offs_t page_offset = (((offs_t) m_dma_offset[0][m_dma_channel]) << 16) & 0xFF0000; | 
| 181 | 183 |  | 
| 182 |  | space.write_byte(page_offset + offset, data); | 
|  | 184 | prog_space.write_byte(page_offset + offset, data); | 
| 183 | 185 | } | 
| 184 | 186 |  | 
| 185 | 187 |  |