New ask Hacker News story: Memory Mapping Issue with M68k Virtual Computer
Memory Mapping Issue with M68k Virtual Computer
3 by mouhamed_ | 3 comments on Hacker News.
Hey Hacker News community, I'm currently working on developing an emulator for a legacy computer using the m68k CPU architecture. I've encountered an interesting memory mapping challenge that I could use some advice on. In my virtual computer's memory map, the RAM is mapped before the ROM. This is causing a problem with the initial memory reads during boot-up, as they're fetching data from RAM instead of ROM, which is leading to unexpected behavior. Has anyone dealt with a similar situation or can provide some insights into how I might redirect those initial memory reads to the correct ROM location? Are there any best practices or techniques I should consider when working with memory mapping in the context of emulating legacy systems? Any guidance, code snippets, or references would be greatly appreciated. Thanks in advance for your help! lang: c++. memory map: RAM_LOW 0x0000000, RAM_HIGH 0x0D00000, VRAM_LOW 0x0E00000, VRAM_HIGH 0x0F00000, IO_LOW 0x0F00000, IO_HIGH 0x0F80000, ROM_LOW 0x0F80000, ROM_HIGH 0x1000000,
3 by mouhamed_ | 3 comments on Hacker News.
Hey Hacker News community, I'm currently working on developing an emulator for a legacy computer using the m68k CPU architecture. I've encountered an interesting memory mapping challenge that I could use some advice on. In my virtual computer's memory map, the RAM is mapped before the ROM. This is causing a problem with the initial memory reads during boot-up, as they're fetching data from RAM instead of ROM, which is leading to unexpected behavior. Has anyone dealt with a similar situation or can provide some insights into how I might redirect those initial memory reads to the correct ROM location? Are there any best practices or techniques I should consider when working with memory mapping in the context of emulating legacy systems? Any guidance, code snippets, or references would be greatly appreciated. Thanks in advance for your help! lang: c++. memory map: RAM_LOW 0x0000000, RAM_HIGH 0x0D00000, VRAM_LOW 0x0E00000, VRAM_HIGH 0x0F00000, IO_LOW 0x0F00000, IO_HIGH 0x0F80000, ROM_LOW 0x0F80000, ROM_HIGH 0x1000000,
Comments
Post a Comment