From cbf66b1e62e0e973b076ca6c82a39095478b8d0b Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 2 Feb 2022 02:14:42 -0500 Subject: [PATCH] prepare to add register cheat sheets --- src/engine/platform/amiga.cpp | 35 ++++++++++++++++++++++++++++++++++ src/engine/platform/arcade.cpp | 24 +++++++++++++++++++++++ src/engine/platform/ay.cpp | 20 +++++++++++++++++++ src/engine/platform/ay8930.cpp | 32 +++++++++++++++++++++++++++++++ src/engine/platform/c64.cpp | 33 ++++++++++++++++++++++++++++++++ src/engine/platform/gb.cpp | 31 ++++++++++++++++++++++++++++++ src/engine/platform/nes.cpp | 24 +++++++++++++++++++++++ src/engine/platform/pce.cpp | 14 ++++++++++++++ src/engine/platform/saa.cpp | 25 ++++++++++++++++++++++++ src/engine/platform/sms.cpp | 5 +++++ src/engine/platform/tia.cpp | 10 ++++++++++ 11 files changed, 253 insertions(+) diff --git a/src/engine/platform/amiga.cpp b/src/engine/platform/amiga.cpp index 2fab039a7..83a2e9745 100644 --- a/src/engine/platform/amiga.cpp +++ b/src/engine/platform/amiga.cpp @@ -5,6 +5,41 @@ #define AMIGA_DIVIDER 8 #define CHIP_DIVIDER 16 +const char* regCheatSheetAmiga[]={ + "DMACON", "96", + "INTENA", "9A", + "ADKCON", "9E", + + "AUD0LCH", "A0", + "AUD0LCL", "A2", + "AUD0LEN", "A4", + "AUD0PER", "A6", + "AUD0VOL", "A8", + "AUD0DAT", "AA", + + "AUD1LCH", "B0", + "AUD1LCL", "B2", + "AUD1LEN", "B4", + "AUD1PER", "B6", + "AUD1VOL", "B8", + "AUD1DAT", "BA", + + "AUD2LCH", "C0", + "AUD2LCL", "C2", + "AUD2LEN", "C4", + "AUD2PER", "C6", + "AUD2VOL", "C8", + "AUD2DAT", "CA", + + "AUD3LCH", "D0", + "AUD3LCL", "D2", + "AUD3LEN", "D4", + "AUD3PER", "D6", + "AUD3VOL", "D8", + "AUD3DAT", "DA", + NULL +}; + void DivPlatformAmiga::acquire(short* bufL, short* bufR, size_t start, size_t len) { for (size_t h=start; hsound_stream_update(bufL+start,len); } diff --git a/src/engine/platform/tia.cpp b/src/engine/platform/tia.cpp index b9b0527f5..d3bff8e48 100644 --- a/src/engine/platform/tia.cpp +++ b/src/engine/platform/tia.cpp @@ -5,6 +5,16 @@ #define rWrite(a,v) if (!skipRegisterWrites) {tia.set(a,v); if (dumpWrites) {addWrite(a,v);} } +const char* regCheatSheetTIA[]={ + "AUDC0", "15", + "AUDC1", "16", + "AUDF0", "17", + "AUDF1", "18", + "AUDV0", "19", + "AUDV1", "1A", + NULL +}; + void DivPlatformTIA::acquire(short* bufL, short* bufR, size_t start, size_t len) { tia.process(bufL+start,len); }