Writes to Printer Interface card strobe should not be interpreted as a data byte (#1017 PR #1027)

This commit is contained in:
sh95014 2022-02-11 12:57:09 -08:00 committed by GitHub
parent 3d39698d2c
commit 9459ec261a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,11 +142,15 @@ static BYTE __stdcall PrintStatus(WORD, WORD, BYTE, BYTE, ULONG)
}
//===========================================================================
static BYTE __stdcall PrintTransmit(WORD, WORD, BYTE, BYTE value, ULONG)
static BYTE __stdcall PrintTransmit(WORD, WORD address, BYTE, BYTE value, ULONG)
{
if (!CheckPrint())
return 0;
// only allow writes to the load output port (i.e., $C090)
if ((address & 0xF) != 0)
return 0;
BYTE c = value & 0x7F;
if (IsPravets(GetApple2Type()))