mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Merge pull request #8278 from drojaazu/sega_mega_cd_prgram_from_main_fix
megacd - Read/write handlers for PRGRAM access from Main side was using u16 fo…
This commit is contained in:
commit
f2d74f9bd4
@ -750,14 +750,14 @@ void sega_segacd_device::segacd_comms_flags_maincpu_w(offs_t offset, uint16_t da
|
||||
|
||||
uint16_t sega_segacd_device::scd_4m_prgbank_ram_r(offs_t offset)
|
||||
{
|
||||
uint16_t realoffset = ((segacd_4meg_prgbank * 0x20000)/2) + offset;
|
||||
uint32_t realoffset = ((segacd_4meg_prgbank * 0x20000)/2) + offset;
|
||||
return m_prgram[realoffset];
|
||||
|
||||
}
|
||||
|
||||
void sega_segacd_device::scd_4m_prgbank_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask)
|
||||
{
|
||||
uint16_t realoffset = ((segacd_4meg_prgbank * 0x20000)/2) + offset;
|
||||
uint32_t realoffset = ((segacd_4meg_prgbank * 0x20000)/2) + offset;
|
||||
|
||||
// todo:
|
||||
// check for write protection? (or does that only apply to writes on the SubCPU side?
|
||||
|
Loading…
Reference in New Issue
Block a user