mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 09:55:08 +01:00
~modified default 68k mapped memory (VDP DMA accesses WRAM only above $800000)
This commit is contained in:
parent
72ec155b38
commit
405489769e
@ -163,7 +163,7 @@ void cart_hw_init()
|
|||||||
***********************************************/
|
***********************************************/
|
||||||
for (i=0; i<0x40; i++)
|
for (i=0; i<0x40; i++)
|
||||||
{
|
{
|
||||||
/* cartridge ROM */
|
/* cartridge ROM */
|
||||||
m68k_memory_map[i].base = cart_rom + (i<<16);
|
m68k_memory_map[i].base = cart_rom + (i<<16);
|
||||||
m68k_memory_map[i].read8 = NULL;
|
m68k_memory_map[i].read8 = NULL;
|
||||||
m68k_memory_map[i].read16 = NULL;
|
m68k_memory_map[i].read16 = NULL;
|
||||||
@ -175,7 +175,8 @@ void cart_hw_init()
|
|||||||
|
|
||||||
for (i=0x40; i<0x80; i++)
|
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].read8 = m68k_read_bus_8;
|
||||||
m68k_memory_map[i].read16 = m68k_read_bus_16;
|
m68k_memory_map[i].read16 = m68k_read_bus_16;
|
||||||
m68k_memory_map[i].write8 = m68k_unused_8_w;
|
m68k_memory_map[i].write8 = m68k_unused_8_w;
|
||||||
|
@ -53,8 +53,10 @@ void gen_init (void)
|
|||||||
m68k_init();
|
m68k_init();
|
||||||
z80_init(0,0,0,z80_irq_callback);
|
z80_init(0,0,0,z80_irq_callback);
|
||||||
|
|
||||||
/* initialize 68k default address space */
|
/* initialize 68k mapped memory */
|
||||||
for (i=0x0; i<0x100; i++)
|
/* $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].base = work_ram;
|
||||||
m68k_memory_map[i].read8 = NULL;
|
m68k_memory_map[i].read8 = NULL;
|
||||||
@ -65,7 +67,7 @@ void gen_init (void)
|
|||||||
zbank_memory_map[i].write = NULL;
|
zbank_memory_map[i].write = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize 68k memory map */
|
/* initialize 68k memory handlers */
|
||||||
for (i=0x80; i<0xe0; i++)
|
for (i=0x80; i<0xe0; i++)
|
||||||
{
|
{
|
||||||
/* illegal area */
|
/* illegal area */
|
||||||
|
Loading…
Reference in New Issue
Block a user