trunk/src/mame/drivers/namcos12.c
| r25511 | r25512 | |
| 1152 | 1152 | { |
| 1153 | 1153 | m_n_dmaoffset = ( offset * 2 ) | ( data << 16 ); |
| 1154 | 1154 | |
| 1155 | | /// HACK: it's unclear how exp_cfg & exp_base really play a part in this. |
| 1156 | | if( m_maincpu->exp_base() == 0x1f300000 ) |
| 1157 | | { |
| 1158 | | m_n_dmaoffset |= 0x80000000; |
| 1159 | | } |
| 1160 | | |
| 1161 | 1155 | verboselog(1, "dmaoffset_w( %08x, %08x, %08x ) %08x\n", offset, data, mem_mask, m_n_dmaoffset ); |
| 1162 | 1156 | } |
| 1163 | 1157 | |
| r25511 | r25512 | |
| 1181 | 1175 | n_offset = m_n_tektagdmaoffset & 0x7fffffff; |
| 1182 | 1176 | verboselog(1, "namcos12_rom_read( %08x, %08x ) tektagt %08x\n", n_address, n_size, n_offset ); |
| 1183 | 1177 | } |
| 1184 | | else if( m_n_dmaoffset >= 0x80000000 ) |
| 1178 | else if( m_n_dmaoffset >= 0x80000000 || m_maincpu->exp_base() == 0x1f300000 ) |
| 1185 | 1179 | { |
| 1180 | /// HACK: it's unclear how exp_cfg & exp_base really play a part in this, tenkomor needs the test here and not in dmaoffset_w(). |
| 1186 | 1181 | n_region = "maincpu:rom"; |
| 1187 | 1182 | n_offset = m_n_dmaoffset & 0x003fffff; |
| 1188 | 1183 | verboselog(1, "namcos12_rom_read( %08x, %08x ) boot %08x\n", n_address, n_size, n_offset ); |