Previous 15994 Revisions Next

r5267 Saturday 18th July, 2009 at 09:12:38 UTC by Barry Rodewald
[FM7/77AV] Fixed RAM location for interrupt vectors. Fixes Ys.
[src/mess/drivers]fm7.c

src/mess/drivers/fm7.c
r5266r5267
339339   if(init_rom_en)
340340      return ROM[0x1ff0+offset];
341341   else
342      return RAM[0xfff0+offset];
342      return RAM[0x3fff0+offset];
343343}
344344
345345static WRITE8_HANDLER( vector_w )
346346{
347347   UINT8* RAM = memory_region(space->machine,"maincpu");
348348   
349   RAM[0xfff0+offset] = data;
349   RAM[0x3fff0+offset] = data;
350350}
351351
352352/*
r5266r5267
381381{
382382   UINT8* RAM = memory_region(space->machine,"maincpu");
383383   
384   basic_rom_en = 1;
384//   basic_rom_en = 1;
385385   if(fm7_type == SYS_FM7)
386386   {
387387      memory_install_readwrite8_handler(space,0x8000,0xfbff,0,0,SMH_BANK(1),SMH_NOP);
r5266r5267
17281728   memset(shared_ram,0xff,0x80);
17291729
17301730   // last part of Initiate ROM is visible at the end of RAM too (interrupt vectors)   
1731   memcpy(RAM+0xfff0,ROM+0x1ff0,16);
1731   memcpy(RAM+0x3fff0,ROM+0x1ff0,16);
17321732
17331733   fm7_video.subrom = 0;  // default sub CPU ROM is type C.
17341734   RAM = memory_region(machine,"subsyscg");
r5266r5267
17631763   {
17641764      init_rom_en = 1;
17651765      // last part of Initiate ROM is visible at the end of RAM too (interrupt vectors)   
1766      memcpy(RAM+0xfff0,ROM+0x1ff0,16);
1766      memcpy(RAM+0x3fff0,ROM+0x1ff0,16);
17671767   }   
17681768   if(fm7_type == SYS_FM7)
17691769      memory_set_bankptr(machine,1,RAM+0x38000);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team