| 1 | ////////////////////////////////////////////////////////////////////////////////////////cxx . . $ `<file>/source/core/board/NstBoardAcclaimMcAcc.hpp`/ |
| 2 | // |
| 3 | // Nestopia - NES/Famicom emulator written in C++ |
| 4 | // |
| 5 | // Copyright (C) 2003-2008 Martin Freij |
| 6 | // |
| 7 | // This file is part of Nestopia. |
| 8 | // |
| 9 | // Nestopia is free software; you can redistribute it and/or modify |
| 10 | // it under the terms of the GNU General Public License as published by |
| 11 | // the Free Software Foundation; either version 2 of the License, or |
| 12 | // (at your option) any later version. |
| 13 | // |
| 14 | // Nestopia is distributed in the hope that it will be useful, |
| 15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | // GNU General Public License for more details. |
| 18 | // |
| 19 | // You should have received a copy of the GNU General Public License |
| 20 | // along with Nestopia; if not, write to the Free Software |
| 21 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | // |
| 23 | //////////////////////////////////////////////////////////////////////////////////////// |
| 24 | |
| 25 | #ifndef NST_BOARD_ACCLAIM_MCACC_H |
| 26 | #define NST_BOARD_ACCLAIM_MCACC_Hcxx . . $ `source/core/board/NstBoardAcclaimMcAcc.hpp:26:9`! |
| 27 | |
| 28 | #ifdef NST_PRAGMA_ONCEcxx . . $ `<built-in>:493:9`! |
| 29 | #pragma once |
| 30 | #endif |
| 31 | |
| 32 | #include "../NstTimer.hpp"cxx . . $ `<file>/source/core/NstTimer.hpp`/ |
| 33 | #include "NstBoardMmc3.hpp"cxx . . $ `<file>/source/core/board/NstBoardMmc3.hpp`/ |
| 34 | |
| 35 | namespace Nescxx . . $ Nes/ |
| 36 | { |
| 37 | namespace Corecxx . . $ Nes/Core/ |
| 38 | { |
| 39 | namespace Boardscxx . . $ Nes/Core/Boards/ |
| 40 | { |
| 41 | namespace Acclaimcxx . . $ Nes/Core/Boards/Acclaim/ |
| 42 | { |
| 43 | class McAcccxx . . $ Nes/Core/Boards/Acclaim/McAcc# : public Boardcxx . . $ Nes/Core/Boards/Board# |
| 44 | { |
| 45 | public: |
| 46 | |
| 47 | explicit McAcccxx . . $ Nes/Core/Boards/Acclaim/McAcc#McAcc(fbbb2e669b2fd67a).(const Contextcxx . . $ Nes/Core/Boards/Board#Context#&); |
| 48 | |
| 49 | protected: |
| 50 | |
| 51 | void SubResetcxx . . $ Nes/Core/Boards/Acclaim/McAcc#SubReset(b45ddcbc8423892c).(bool); |
| 52 | void SubSavecxx . . $ Nes/Core/Boards/Acclaim/McAcc#SubSave(70cabb4b5c9d60c5).(Statecxx . . $ Nes/Core/State/::Savercxx . . $ Nes/Core/State/Saver#&) const; |
| 53 | void SubLoadcxx . . $ Nes/Core/Boards/Acclaim/McAcc#SubLoad(17e4a2efde3ba462).(Statecxx . . $ Nes/Core/State/::Loadercxx . . $ Nes/Core/State/Loader#&,dwordcxx . . $ Nes/dword#); |
| 54 | void Synccxx . . $ Nes/Core/Boards/Acclaim/McAcc#Sync(886b2acfd8b34fe5).(Eventcxx . . $ Nes/Core/Boards/Board#Event#,Inputcxx . . $ Nes/Core/Input/::Controllerscxx . . $ Nes/Core/Input/Controllers#*); |
| 55 | |
| 56 | void UpdatePrgcxx . . $ Nes/Core/Boards/Acclaim/McAcc#UpdatePrg(49f6e7a06ebc5aa8).(); |
| 57 | void UpdateChrcxx . . $ Nes/Core/Boards/Acclaim/McAcc#UpdateChr(83f5f38750778ac8).() const; |
| 58 | |
| 59 | virtual void NST_FASTCALLcxx . . $ `source/core/NstCore.hpp:185:9`! UpdatePrgcxx . . $ Nes/Core/Boards/Acclaim/McAcc#UpdatePrg(b4d55b1286ff73e8).(uintcxx . . $ Nes/uint#,uintcxx . . $ Nes/uint#); |
| 60 | virtual void NST_FASTCALLcxx . . $ `source/core/NstCore.hpp:185:9`! UpdateChrcxx . . $ Nes/Core/Boards/Acclaim/McAcc#UpdateChr(6aee441b8288ba20).(uintcxx . . $ Nes/uint#,uintcxx . . $ Nes/uint#) const; |
| 61 | |
| 62 | NES_DECL_POKEcxx . . $ Nes/Core/Address#( 8000 ); |
| 63 | NES_DECL_POKEcxx . . $ Nes/Core/Data#( 8001 ); |
| 64 | NES_DECL_POKEcxx . . $ Nes/Core/Address#( A001 ); |
| 65 | NES_DECL_POKEcxx . . $ `source/core/NstIoPort.hpp:203:12`!( C000 ); |
| 66 | NES_DECL_POKEcxx . . $ `source/core/NstIoPort.hpp:203:12`!( C001 ); |
| 67 | NES_DECL_POKEcxx . . $ `source/core/NstIoPort.hpp:203:12`!( E000 ); |
| 68 | NES_DECL_POKEcxx . . $ `source/core/NstIoPort.hpp:203:12`!( E001 ); |
| 69 | |
| 70 | enumcxx . . $ Nes/Core/Boards/Acclaim/McAcc#$anonymous_type_0# |
| 71 | { |
| 72 | CTRL1_WRAM_READONLYcxx . . $ Nes/Core/Boards/Acclaim/McAcc#CTRL1_WRAM_READONLY. = 0x40, |
| 73 | CTRL1_WRAM_ENABLEDcxx . . $ Nes/Core/Boards/Acclaim/McAcc#CTRL1_WRAM_ENABLED. = 0x80, |
| 74 | CTRL1_WRAMcxx . . $ Nes/Core/Boards/Acclaim/McAcc#CTRL1_WRAM. = CTRL1_WRAM_ENABLEDcxx . . $ Nes/Core/Boards/Acclaim/McAcc#CTRL1_WRAM_ENABLED.|CTRL1_WRAM_READONLYcxx . . $ Nes/Core/Boards/Acclaim/McAcc#CTRL1_WRAM_READONLY. |
| 75 | }; |
| 76 | |
| 77 | struct Regscxx . . $ Nes/Core/Boards/Acclaim/McAcc#Regs# |
| 78 | { |
| 79 | uintcxx . . $ Nes/uint# ctrl0cxx . . $ Nes/Core/Boards/Acclaim/McAcc#Regs#ctrl0.; |
| 80 | uintcxx . . $ Nes/uint# ctrl1cxx . . $ Nes/Core/Boards/Acclaim/McAcc#Regs#ctrl1.; |
| 81 | } regscxx . . $ Nes/Core/Boards/Acclaim/McAcc#regs.; |
| 82 | |
| 83 | structcxx . . $ Nes/Core/Boards/Acclaim/McAcc#$anonymous_type_1# |
| 84 | { |
| 85 | bytecxx . . $ Nes/byte# prgcxx . . $ Nes/Core/Boards/Acclaim/McAcc#$anonymous_type_1#prg.[4]; |
| 86 | bytecxx . . $ Nes/byte# chrcxx . . $ Nes/Core/Boards/Acclaim/McAcc#$anonymous_type_1#chr.[8]; |
| 87 | } bankscxx . . $ Nes/Core/Boards/Acclaim/McAcc#banks.; |
| 88 | |
| 89 | private: |
| 90 | enumcxx . . $ Nes/Core/Boards/Acclaim/McAcc#$anonymous_type_2# { |
| 91 | A12_FILTERcxx . . $ Nes/Core/Boards/Acclaim/McAcc#A12_FILTER. = 39, |
| 92 | IRQ_DELAYcxx . . $ Nes/Core/Boards/Acclaim/McAcc#IRQ_DELAY. = 0 |
| 93 | }; |
| 94 | |
| 95 | // FIXME: IRQ_DELAY should be 4 ppu clocks |
| 96 | Mmc3cxx . . $ Nes/Core/Boards/Mmc3#::Irqcxx . . $ Nes/Core/Boards/Mmc3#Irq#<IRQ_DELAYcxx . . $ Nes/Core/Boards/Acclaim/McAcc#IRQ_DELAY., A12_FILTERcxx . . $ Nes/Core/Boards/Acclaim/McAcc#A12_FILTER.> irqcxx . . $ Nes/Core/Boards/Acclaim/McAcc#irq.; |
| 97 | }; |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | #endif |