mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-03 11:30:22 +00:00
Windows speech: trap calls to COUT1 and BASICOUT (instead of COUT) (#934)
This commit is contained in:
parent
0858cc3a23
commit
3f75012c0e
@ -269,7 +269,8 @@ static __forceinline void DoIrqProfiling(DWORD uCycles)
|
||||
|
||||
#ifdef USE_SPEECH_API
|
||||
|
||||
const USHORT COUT = 0xFDED;
|
||||
const USHORT COUT1 = 0xFDF0; // GH#934 - ProDOS: COUT1 better than using COUT/$FDED
|
||||
const USHORT BASICOUT = 0xC307; // GH#934 - 80COL: use BASICOUT
|
||||
|
||||
const UINT OUTPUT_BUFFER_SIZE = 256;
|
||||
char g_OutputBuffer[OUTPUT_BUFFER_SIZE+1+1]; // +1 for EOL, +1 for NULL
|
||||
@ -370,7 +371,7 @@ static __forceinline void Fetch(BYTE& iOpcode, ULONG uExecutedCycles)
|
||||
: *(mem+PC);
|
||||
|
||||
#ifdef USE_SPEECH_API
|
||||
if (PC == COUT && g_Speech.IsEnabled() && !g_bFullSpeed)
|
||||
if ((PC == COUT1 || PC == BASICOUT) && g_Speech.IsEnabled() && !g_bFullSpeed)
|
||||
CaptureCOUT();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user