Update mapper 315.
This commit is contained in:
committed by
LibretroAdmin
parent
edf8ae2aef
commit
9e19ed1576
@@ -49,18 +49,18 @@ static DECLFR(remapButtons) {
|
|||||||
result <<=1;
|
result <<=1;
|
||||||
result |=read4016(0x4016) &1;
|
result |=read4016(0x4016) &1;
|
||||||
}
|
}
|
||||||
result =(result &0x90? 0x01: 0x00) | // START/A
|
result =(result &0x90? 0x01: 0x00) | /* START/A */
|
||||||
(result &0x60? 0x02: 0x00) ; // SELECT/B
|
(result &0x60? 0x02: 0x00) ; /* SELECT/B */
|
||||||
} else
|
} else
|
||||||
if (A ==0x4017) {
|
if (A ==0x4017) {
|
||||||
for (int i =0; i <8; i++) {
|
for (int i =0; i <8; i++) {
|
||||||
result <<=1;
|
result <<=1;
|
||||||
result |=read4016(0x4016) &1;
|
result |=read4016(0x4016) &1;
|
||||||
}
|
}
|
||||||
result =(result &0x04? 0x08: 0x00) | // DOWN
|
result =(result &0x04? 0x08: 0x00) | /* DOWN */
|
||||||
(result &0x08? 0x02: 0x00) | // UP
|
(result &0x08? 0x02: 0x00) | /* UP */
|
||||||
(result &0x02? 0x04: 0x00) | // LEFT
|
(result &0x02? 0x04: 0x00) | /* LEFT */
|
||||||
(result &0x01? 0x10: 0x00) // RIGHT
|
(result &0x01? 0x10: 0x00) /* RIGHT */
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ static void BMC830134CCW(uint32 A, uint8 V) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void BMC830134CPW(uint32 A, uint8 V) {
|
static void BMC830134CPW(uint32 A, uint8 V) {
|
||||||
if ((EXPREGS[0] & 0x06) == 0x06) {
|
if (EXPREGS[0] & 0x08) {
|
||||||
if (A == 0x8000) {
|
if (A == 0x8000) {
|
||||||
setprg8(A, (V & 0x0F) | ((EXPREGS[0] & 0x06) << 3));
|
setprg8(A, (V & 0x0F) | ((EXPREGS[0] & 0x06) << 3));
|
||||||
setprg8(0xC000, (V & 0x0F) | 0x32);
|
setprg8(0xC000, (V & 0x0F) | 0x32);
|
||||||
@@ -45,7 +45,7 @@ static void BMC830134CPW(uint32 A, uint8 V) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static DECLFW(BMC830134CWrite) {
|
static DECLFW(BMC830134CWrite) {
|
||||||
EXPREGS[0] = V;
|
EXPREGS[0] = A &0xFF;
|
||||||
FixMMC3PRG(MMC3_cmd);
|
FixMMC3PRG(MMC3_cmd);
|
||||||
FixMMC3CHR(MMC3_cmd);
|
FixMMC3CHR(MMC3_cmd);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user