Support Cortechs Corp CodeWriter protection key (#1205)

This commit is contained in:
TomCh
2023-03-31 12:01:19 +01:00
committed by GitHub
parent 48f4a03e6c
commit 7aef95f071
5 changed files with 69 additions and 13 deletions
+3
View File
@@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Interface.h"
#include "Core.h"
#include "CardManager.h"
#include "CopyProtectionDongles.h"
#include "CPU.h"
#include "Joystick.h"
#include "Keyboard.h"
@@ -709,6 +710,8 @@ BYTE __stdcall IO_Annunciator(WORD programcounter, WORD address, BYTE write, BYT
// . $C2B5: LDA $C05D (CLRAN2) ;SETUP
// . $C2B8: LDA $C05F (CLRAN3) ; ANNUNCIATORS
DongleControl(address); // do before setting g_Annunciator[] as may need to access old MemGetAnnunciator() state
g_Annunciator[(address>>1) & 3] = (address&1) ? true : false;
if (address >= 0xC058 && address <= 0xC05B)