-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add mapper 474 #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add mapper 474 #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also suggest any games you've tested with, so I can verify as well, thanks!
} | ||
} | ||
|
||
Byte MapperNROM::readPRG(Address addr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Byte MapperNROM::readPRG(Address addr) | |
Byte Mapper474::readPRG(Address addr) |
Similar for the rest of the functions.
@@ -41,13 +41,34 @@ namespace sn | |||
} | |||
else if (addr < 0x6000) | |||
{ | |||
LOG(InfoVerbose) << "Expansion ROM read attempted. This is currently unsupported" << std::endl; | |||
if (m_mapper->getType() == NROM474) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of the type check and simply call m_mapper? That we leave it to the mapper and the memory bus code remains generic.
This is a new mapper that supports extra ROM space compared to the NROM but has no bank switching.