uint16 MD_Cart_Type_SVP::Read16(uint32 A) { if(A < 0x400000) { if(A > rom_size) { printf("Read16: %08x\n", A); return(0); } return(READ_WORD_MSB(rom, A)); } printf("Read16: %08x\n", A); return(m68k_read_bus_16(A)); }
uint16 MD_Cart_Type_SRAM::Read16(uint32 A) { if(sram_enabled && A >= sram_start && A <= sram_end) { return(READ_WORD_MSB(sram, A - sram_start)); } if(A < 0x400000) { if(A >= rom_size) { MD_DBG(MD_DBG_WARNING, "[MAP_SRAM] Unknown read16 from 0x%08x\n", A); return(0); } return(READ_WORD_MSB(rom, A)); } return(m68k_read_bus_16(A)); }
uint16 MD_Cart_Type_RMX3::Read16(uint32 A) { if(A < 0x400000) { if(A > rom_size) { MD_DBG(MD_DBG_WARNING, "[MAP_RMX3] Unknown read16 from 0x%08x\n", A); return(0); } return(READ_WORD_MSB(rom, A)); } if(A == 0xa13000) return(0x0C); if(A == 0x400004) return(0x88); MD_DBG(MD_DBG_WARNING, "[MAP_RMX3] Unknown read16 from 0x%08x\n", A); return(m68k_read_bus_16(A)); }
uint16 MD_Cart_Type_SBB::Read16(uint32 A) { if(A < 0x400000) { if(A > rom_size) { printf("Moo: %08x\n", A); return(0); } return(READ_WORD_MSB(rom, A)); } if(A == 0x400000) return(0x55); if(A == 0x400002) return(0x0f); printf("Moo: %08x\n", A); return(m68k_read_bus_16(A)); }