mirror of https://github.com/stella-emu/stella.git
Fixed GCC 4.4 warning.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1753 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
2bc2ff639c
commit
eed5450a20
|
@ -115,8 +115,8 @@ uInt8 CartridgeCV::peek(uInt16 address)
|
|||
// Reading from the write port triggers an unwanted write
|
||||
// The value written to RAM is somewhat undefined, so we use 0
|
||||
// Thanks to Kroko of AtariAge for this advice and code idea
|
||||
if(address & 0x0FFF < 0x0800) // Write port is at 0xF400 - 0xF800 (1024 bytes)
|
||||
{ // Read port is handled in ::install()
|
||||
if((address & 0x0FFF) < 0x0800) // Write port is at 0xF400 - 0xF800 (1024 bytes)
|
||||
{ // Read port is handled in ::install()
|
||||
if(myBankLocked) return 0;
|
||||
else return myRAM[address & 0x03FF] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue