~modified default 68k mapped memory (VDP DMA accesses WRAM only above $800000)

This commit is contained in:
ekeeke31 2009-06-16 17:00:40 +00:00
parent 72ec155b38
commit 405489769e
2 changed files with 8 additions and 5 deletions

View File

@ -163,7 +163,7 @@ void cart_hw_init()
***********************************************/
for (i=0; i<0x40; i++)
{
/* cartridge ROM */
/* cartridge ROM */
m68k_memory_map[i].base = cart_rom + (i<<16);
m68k_memory_map[i].read8 = NULL;
m68k_memory_map[i].read16 = NULL;
@ -175,7 +175,8 @@ void cart_hw_init()
for (i=0x40; i<0x80; i++)
{
/* unused area */
/* unused area */
m68k_memory_map[i].base = cart_rom + (i<<16);
m68k_memory_map[i].read8 = m68k_read_bus_8;
m68k_memory_map[i].read16 = m68k_read_bus_16;
m68k_memory_map[i].write8 = m68k_unused_8_w;

View File

@ -53,8 +53,10 @@ void gen_init (void)
m68k_init();
z80_init(0,0,0,z80_irq_callback);
/* initialize 68k default address space */
for (i=0x0; i<0x100; i++)
/* initialize 68k mapped memory */
/* $000000-$7fffff is affected to cartridge area (see cart_hw.c) */
/* $800000-$ffffff is affected to WRAM (see VDP DMA) */
for (i=0x80; i<0x100; i++)
{
m68k_memory_map[i].base = work_ram;
m68k_memory_map[i].read8 = NULL;
@ -65,7 +67,7 @@ void gen_init (void)
zbank_memory_map[i].write = NULL;
}
/* initialize 68k memory map */
/* initialize 68k memory handlers */
for (i=0x80; i<0xe0; i++)
{
/* illegal area */