Add mapper 256 submapper 12.

This commit is contained in:
NewRisingSun
2025-04-25 01:01:56 +02:00
committed by LibretroAdmin
parent 00c0ff9122
commit cbc5270746
2 changed files with 12 additions and 7 deletions

View File

@@ -492,7 +492,8 @@ static void X6502_RunDebug(int32 cycles) {
X.preexec = 1;
b1 = RdMem(_PC);
_PC++;
if (encryptOpcodes ==67) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
if (encryptOpcodes ==12) b1 =b1 &0x39 | b1 >>1 &0x42 | b1 <<1 &0x84;
if (encryptOpcodes ==14) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
switch (b1) {
#include "ops.h"
}
@@ -522,7 +523,8 @@ static void X6502_RunDebug(int32 cycles) {
FCEU_SoundCPUHook(temp);
_PC++;
if (encryptOpcodes ==67) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
if (encryptOpcodes ==12) b1 =b1 &0x39 | b1 >>1 &0x42 | b1 <<1 &0x84;
if (encryptOpcodes ==14) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
switch (b1) {
#include "ops.h"
}
@@ -620,7 +622,8 @@ void X6502_Run(int32 cycles)
FCEU_SoundCPUHook(temp);
X.PC = pbackus;
_PC++;
if (encryptOpcodes ==67) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
if (encryptOpcodes ==12) b1 =b1 &0x39 | b1 >>1 &0x42 | b1 <<1 &0x84;
if (encryptOpcodes ==14) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
switch (b1) {
#include "ops.h"
}