2008-06-20 23:47:25 +00:00
|
|
|
/*
|
|
|
|
AppleWin : An Apple //e emulator for Windows
|
|
|
|
|
|
|
|
Copyright (C) 1994-1996, Michael O'Brien
|
|
|
|
Copyright (C) 1999-2001, Oliver Schmidt
|
|
|
|
Copyright (C) 2002-2005, Tom Charlesworth
|
|
|
|
Copyright (C) 2006-2007, Tom Charlesworth, Michael Pohoreski
|
|
|
|
|
|
|
|
AppleWin is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
AppleWin is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with AppleWin; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2021-01-17 10:48:06 +00:00
|
|
|
/* Description: Tape interface.
|
2008-06-20 23:47:25 +00:00
|
|
|
*
|
|
|
|
* Author: Various
|
2015-07-06 09:27:23 +00:00
|
|
|
*
|
2017-05-14 10:33:07 +00:00
|
|
|
* In comments, UTAIIe is an abbreviation for a reference to "Understanding the Apple //e" by James Sather
|
2008-06-20 23:47:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "StdAfx.h"
|
2010-02-14 21:11:26 +00:00
|
|
|
|
2021-01-17 10:48:06 +00:00
|
|
|
#include "Core.h"
|
2020-11-11 21:15:27 +00:00
|
|
|
#include "Tape.h"
|
2014-08-13 20:30:35 +00:00
|
|
|
#include "Memory.h"
|
2015-05-31 21:53:53 +00:00
|
|
|
#include "Pravets.h"
|
2014-08-13 20:30:35 +00:00
|
|
|
|
2008-06-20 23:47:25 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
2021-01-17 10:48:06 +00:00
|
|
|
BYTE __stdcall TapeRead(WORD, WORD address, BYTE, BYTE, ULONG nExecutedCycles) // $C060 TAPEIN
|
2008-06-20 23:47:25 +00:00
|
|
|
{
|
2021-01-17 10:48:06 +00:00
|
|
|
if (g_Apple2Type == A2TYPE_PRAVETS8A)
|
|
|
|
return GetPravets().GetKeycode( MemReadFloatingBus(nExecutedCycles) );
|
2010-08-17 07:52:23 +00:00
|
|
|
|
2018-03-03 21:27:50 +00:00
|
|
|
return MemReadFloatingBus(1, nExecutedCycles); // TAPEIN has high bit 1 when input is low or not connected (UTAIIe page 7-5, 7-6)
|
2008-06-20 23:47:25 +00:00
|
|
|
}
|
|
|
|
|
2021-01-17 10:48:06 +00:00
|
|
|
BYTE __stdcall TapeWrite(WORD, WORD address, BYTE, BYTE, ULONG nExecutedCycles) // $C020 TAPEOUT
|
2008-06-20 23:47:25 +00:00
|
|
|
{
|
2021-01-17 10:48:06 +00:00
|
|
|
return 0;
|
2008-06-20 23:47:25 +00:00
|
|
|
}
|