diff options
Diffstat (limited to 'SrcShared/Hardware/TRG/EmTRGCF.h')
-rw-r--r-- | SrcShared/Hardware/TRG/EmTRGCF.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/SrcShared/Hardware/TRG/EmTRGCF.h b/SrcShared/Hardware/TRG/EmTRGCF.h new file mode 100644 index 0000000..a3eb969 --- /dev/null +++ b/SrcShared/Hardware/TRG/EmTRGCF.h @@ -0,0 +1,58 @@ +/* -*- mode: C++; tab-width: 4 -*- */ +/* ===================================================================== *\ + Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. + All rights reserved. + + This file is part of the Palm OS Emulator. + + This program 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. +\* ===================================================================== */ + +#ifndef EmTRGCF_h +#define EmTRGCF_h + +#include "EmRegs.h" +#include "EmTRGCFDefs.h" +#include "EmTRGATA.h" +#include "EmTRGCFMem.h" + +class EmRegsCFMemCard : public EmRegs +{ + public: + EmRegsCFMemCard (CFBusManager * fCFBusManager); + virtual ~EmRegsCFMemCard (void); + + // EmRegs overrides + virtual void Initialize (void); + virtual void Reset (Bool hardwareReset); + virtual void Save (SessionFile&); + virtual void Load (SessionFile&); + virtual void Dispose (void); + + uint8* GetRealAddress (emuptr address); + void SetSubBankHandlers (void); + emuptr GetAddressStart (void); + uint32 GetAddressRange (void); + + uint32 GetLong (emuptr iAddress); + uint32 GetWord (emuptr iAddress); + uint32 GetByte (emuptr iAddress); + void SetLong (emuptr iAddress, uint32 iLongValue); + void SetWord (emuptr iAddress, uint32 iWordValue); + void SetByte (emuptr iAddress, uint32 iByteValue); +private: + uint8 Buffer[kMemorySizeCF]; + uint32 Read (emuptr address, int size); + void Write (emuptr address, int size, uint32 value); + EmDiskTypeID DiskTypeID; + EmRegsCFAta Ata; + EmRegsCFTuple Tuple; + EmRegsCFConfig Config; + EmRegsCFReset CFReset; + CFBusManager * fBusMgr; +}; + +#endif /* EmTRGCF_h */ |