Previous 15994 Revisions Next

r6914 Monday 4th January, 2010 at 11:47:47 UTC by Miodrag Milanović
- PIT8253 changes (sent to MAME also)
- AT586 now bootable
- removed hack from i82439tx.c
- added new default bios for at586 (left old just in case there are some other errors causing current problem)
[src/emu/machine]pit8253.c
[src/mess/drivers]at.c
[src/mess/machine]i82439tx.c

src/emu/machine/pit8253.c
r6913r6914
266266      }
267267      else
268268      {
269         if (elapsed_cycles > 0 && timer->phase == 1)
269         if (elapsed_cycles >= 0 && timer->phase == 1)
270270         {
271271            /* Counter load cycle */
272            --elapsed_cycles;
272            if (elapsed_cycles > 0) --elapsed_cycles;
273273            timer->phase = 2;
274274            load_counter_value( device, timer );
275275         }
src/mess/machine/i82439tx.c
r6913r6914
8888      case 0x64:
8989      case 0x68:
9090      case 0x78:
91      case 0xC0:
9192      case 0xE0:
9293         result = i82439tx->regs[(offset - 0x50) / 4];
9394         break;
r6913r6914
156157      case 0x70:
157158      case 0x74:
158159      case 0x78:
160      case 0xC0:
159161      case 0xE0:
160162         switch(offset)
161163         {           
r6913r6914
199201         fatalerror("intel82439tx_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X\n", offset, data);
200202         break;
201203   }
202
203   /* hack to compensate for weird issue (maybe the Pentium core needs to support caching? */
204   if ((cpu_get_reg(machine->firstcpu, REG_GENPC) == 0xFCB01) && !strcmp(machine->gamedrv->name, "at586"))
205   {
206      memory_region(machine, "user1")[0x3CB01] = 0xF3;
207      memory_region(machine, "user1")[0x3CB02] = 0xA4;
208      memory_region(machine, "user1")[0x3CB03] = 0x58;
209      memory_region(machine, "user1")[0x3CB04] = 0xEE;
210   }
211204}
212205
213206
src/mess/drivers/at.c
r6913r6914
113113   AM_RANGE(0x00000000, 0x0009ffff) AM_RAMBANK("bank10")
114114   AM_RANGE(0x000a0000, 0x000bffff) AM_NOP
115115//  AM_RANGE(0x000b8000, 0x000bffff) AM_READWRITE(SMH_RAM, pc_video_videoram32_w) AM_BASE((UINT32 **) &videoram) AM_SIZE(&videoram_size)
116   AM_RANGE(0x00800000, 0x00800bff) AM_RAM AM_BASE_SIZE_GENERIC(nvram)
116117   AM_RANGE(0xfffe0000, 0xffffffff) AM_ROM AM_REGION("user1", 0x20000)
117118ADDRESS_MAP_END
118119
r6913r6914
12041205   ROM_REGION32_LE(0x40000, "user1", 0)
12051206   ROM_LOAD("et4000.bin",  0x00000, 0x08000, CRC(f01e4be0) SHA1(95d75ff41bcb765e50bd87a8da01835fd0aa01d5))
12061207    ROM_LOAD("wdbios.rom",  0x08000, 0x02000, CRC(8e9e2bd4) SHA1(601d7ceab282394ebab50763c267e915a6a2166a))
1207    ROM_LOAD("at586.bin",   0x20000, 0x20000, CRC(717037f5) SHA1(1d49d1b7a4a40d07d1a897b7f8c827754d76f824))
1208
1208   ROM_SYSTEM_BIOS(0, "sptx", "SP-586TX")
1209    ROMX_LOAD("sp586tx.bin",   0x20000, 0x20000, CRC(1003d72c) SHA1(ec9224ff9b0fdfd6e462cb7bbf419875414739d6), ROM_BIOS(1))     
1210   ROM_SYSTEM_BIOS(1, "unisys", "Unisys 586") // probably bad dump due to need of hac in i82439tx to work
1211    ROMX_LOAD("at586.bin",     0x20000, 0x20000, CRC(717037f5) SHA1(1d49d1b7a4a40d07d1a897b7f8c827754d76f824), ROM_BIOS(2))
12091212   /* 8042 keyboard controller */
12101213   ROM_REGION( 0x0800, "kbdc8042", 0 )
12111214   ROM_LOAD("1503033.bin", 0x0000, 0x0800, CRC(5a81c0d2) SHA1(0100f8789fb4de74706ae7f9473a12ec2b9bd729))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team