src/mame/machine/archimds.c
| r8797 | r8798 | |
| 492 | 492 | // if that did it, clear the IRQ |
| 493 | 493 | if (ioc_regs[IRQ_STATUS_A] == 0) |
| 494 | 494 | { |
| 495 | printf("IRQ clear A\n"); |
| 495 | 496 | cputag_set_input_line(space->machine, "maincpu", ARM_IRQ_LINE, CLEAR_LINE); |
| 496 | 497 | } |
| 497 | 498 | break; |
| r8797 | r8798 | |
| 837 | 838 | log <<= 23; |
| 838 | 839 | log |= (data & 0x7f8000); |
| 839 | 840 | memc = ((data & 0x80) ? 1 : 0) | ((data & 0x1000) ? 2 : 0); |
| 841 | //printf("Mapping %08X to %08X\n",0x2000000+(phys*32768),(((data >> 15)&0xff)|((data >> 2)&0x300))); |
| 840 | 842 | break; |
| 841 | 843 | } |
| 842 | 844 | |
| r8797 | r8798 | |
| 846 | 848 | memc_latchrom = 0; |
| 847 | 849 | |
| 848 | 850 | // now go ahead and set the mapping in the page table |
| 849 | | memc_pages[log] = phys * memc; |
| 851 | memc_pages[log] = phys + (memc*0x80); |
| 850 | 852 | |
| 851 | 853 | // printf("MEMC_PAGE(%d): W %08x: log %x to phys %x, MEMC %d, perms %d\n", memc_pagesize, data, log, phys, memc, perms); |
| 852 | 854 | } |