Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
9aaf8b22
Commit
9aaf8b22
authored
Dec 17, 2018
by
Stephen Anthony
Browse files
Fix wrong address in poke methods in 'SC' schemes.
parent
4ff613b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/emucore/CartBFSC.cxx
View file @
9aaf8b22
...
...
@@ -88,6 +88,7 @@ uInt8 CartridgeBFSC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool
CartridgeBFSC
::
poke
(
uInt16
address
,
uInt8
value
)
{
uInt16
pokeAddress
=
address
;
address
&=
0x0FFF
;
// Switch banks if necessary
...
...
@@ -97,7 +98,7 @@ bool CartridgeBFSC::poke(uInt16 address, uInt8 value)
return
false
;
}
pokeRAM
(
myRAM
[
address
&
0x007F
],
a
ddress
,
value
);
pokeRAM
(
myRAM
[
address
&
0x007F
],
pokeA
ddress
,
value
);
return
true
;
}
...
...
src/emucore/CartDFSC.cxx
View file @
9aaf8b22
...
...
@@ -88,6 +88,7 @@ uInt8 CartridgeDFSC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool
CartridgeDFSC
::
poke
(
uInt16
address
,
uInt8
value
)
{
uInt16
pokeAddress
=
address
;
address
&=
0x0FFF
;
// Switch banks if necessary
...
...
@@ -97,7 +98,7 @@ bool CartridgeDFSC::poke(uInt16 address, uInt8 value)
return
false
;
}
pokeRAM
(
myRAM
[
address
&
0x007F
],
a
ddress
,
value
);
pokeRAM
(
myRAM
[
address
&
0x007F
],
pokeA
ddress
,
value
);
return
true
;
}
...
...
src/emucore/CartEFSC.cxx
View file @
9aaf8b22
...
...
@@ -88,6 +88,7 @@ uInt8 CartridgeEFSC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool
CartridgeEFSC
::
poke
(
uInt16
address
,
uInt8
value
)
{
uInt16
pokeAddress
=
address
;
address
&=
0x0FFF
;
// Switch banks if necessary
...
...
@@ -97,7 +98,7 @@ bool CartridgeEFSC::poke(uInt16 address, uInt8 value)
return
false
;
}
pokeRAM
(
myRAM
[
address
&
0x007F
],
a
ddress
,
value
);
pokeRAM
(
myRAM
[
address
&
0x007F
],
pokeA
ddress
,
value
);
return
true
;
}
...
...
src/emucore/CartF4SC.cxx
View file @
9aaf8b22
...
...
@@ -88,6 +88,7 @@ uInt8 CartridgeF4SC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool
CartridgeF4SC
::
poke
(
uInt16
address
,
uInt8
value
)
{
uInt16
pokeAddress
=
address
;
address
&=
0x0FFF
;
// Switch banks if necessary
...
...
@@ -97,7 +98,7 @@ bool CartridgeF4SC::poke(uInt16 address, uInt8 value)
return
false
;
}
pokeRAM
(
myRAM
[
address
&
0x007F
],
a
ddress
,
value
);
pokeRAM
(
myRAM
[
address
&
0x007F
],
pokeA
ddress
,
value
);
return
true
;
}
...
...
src/emucore/CartF6SC.cxx
View file @
9aaf8b22
...
...
@@ -111,10 +111,8 @@ uInt8 CartridgeF6SC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool
CartridgeF6SC
::
poke
(
uInt16
address
,
uInt8
value
)
{
address
&=
0x0FFF
;
// Switch banks if necessary
switch
(
address
)
switch
(
address
&
0x0FFF
)
{
case
0x0FF6
:
// Set the current bank to the first 4k bank
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment