Add mapper 270, add mapper 256 submapper 14 (CPU opcode encryption)

This commit is contained in:
NewRisingSun
2025-04-01 22:54:58 +02:00
committed by LibretroAdmin
parent 7194d208d9
commit 1f19807dd6
6 changed files with 110 additions and 47 deletions

View File

@@ -27,6 +27,7 @@
#include "sound.h"
X6502 X;
uint8 encryptOpcodes =0;
#ifdef FCEUDEF_DEBUGGER
void (*X6502_Run)(int32 cycles);
@@ -491,6 +492,7 @@ 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;
switch (b1) {
#include "ops.h"
}
@@ -520,6 +522,7 @@ static void X6502_RunDebug(int32 cycles) {
FCEU_SoundCPUHook(temp);
_PC++;
if (encryptOpcodes ==67) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
switch (b1) {
#include "ops.h"
}
@@ -617,6 +620,7 @@ void X6502_Run(int32 cycles)
FCEU_SoundCPUHook(temp);
X.PC = pbackus;
_PC++;
if (encryptOpcodes ==67) b1 =b1 &0x3F | b1 >>1 &0x40 | b1 <<1 &0x80;
switch (b1) {
#include "ops.h"
}