From 7b91045bac868b3482692dd905c4bc82731dec22 Mon Sep 17 00:00:00 2001 From: cam900 Date: Thu, 5 May 2022 13:38:10 +0900 Subject: [PATCH] Add documents Important: it will break previously baked modules with 5B and AY8930 --- src/engine/engine.h | 4 ++-- src/engine/song.h | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/engine/engine.h b/src/engine/engine.h index d15838942..169a3f02a 100644 --- a/src/engine/engine.h +++ b/src/engine/engine.h @@ -45,8 +45,8 @@ #define BUSY_BEGIN_SOFT softLocked=true; isBusy.lock(); #define BUSY_END isBusy.unlock(); softLocked=false; -#define DIV_VERSION "dev91" -#define DIV_ENGINE_VERSION 91 +#define DIV_VERSION "devff" // it breaks compatiblity +#define DIV_ENGINE_VERSION 0xff // for imports #define DIV_VERSION_MOD 0xff01 diff --git a/src/engine/song.h b/src/engine/song.h index c0852ea0e..39d388699 100644 --- a/src/engine/song.h +++ b/src/engine/song.h @@ -215,13 +215,19 @@ struct DivSong { // - 8: 0.83MHz (Sunsoft 5B on PAL) // - 9: 1.10MHz (Gamate/VIC-20 PAL) // - 10: 2.097152MHz (Game Boy) + // - 11: 3.58MHz (Darky) + // - 12: 3.6MHz (Darky) // - bit 4-5: chip type (ignored on AY8930) // - 0: AY-3-8910 or similar // - 1: YM2149 // - 2: Sunsoft 5B - // - bit 6: stereo + // - 3: AY-3-8914 + // - bit 6: stereo (ignored on Sunsoft 5B) // - 0: mono // - 1: stereo ABC + // - bit 7: clock divider pin (YM2149, AY8930) + // - 0: high (disable divider) + // - 1: low (internally divided to half) // - SAA1099: // - bit 0-1: clock rate // - 0: 8MHz (SAM Coupé, Game Blaster)