| 1 | #cxx . . $ `<file>/mednafen/hw_misc/arcade_card/arcade_card.h`/ifndef __MDFN_PCE_ARCADE_CARD_H |
| 2 | #define __MDFN_PCE_ARCADE_CARD_Hcxx . . $ `mednafen/hw_misc/arcade_card/arcade_card.h:2:9`! |
| 3 | |
| 4 | typedef structcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_0# |
| 5 | { |
| 6 | uint32cxx . . $ uint32# basecxx . . $ $anonymous_type_ea7f61dba9a6a9bb_0#base.; // 24 bits |
| 7 | uint16cxx . . $ uint16# offsetcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_0#offset.; // 16 bits |
| 8 | uint16cxx . . $ uint16# incrementcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_0#increment.; // 16 bits |
| 9 | uint8cxx . . $ uint8# controlcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_0#control.; // 7 bits |
| 10 | } ACPort_tcxx . . $ ACPort_t#; |
| 11 | |
| 12 | typedef structcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_1# |
| 13 | { |
| 14 | ACPort_tcxx . . $ ACPort_t# portscxx . . $ $anonymous_type_ea7f61dba9a6a9bb_1#ports.[4]; |
| 15 | uint32cxx . . $ uint32# shift_latchcxx . . $ $anonymous_type_ea7f61dba9a6a9bb_1#shift_latch.; // 32 bits |
| 16 | uint8cxx . . $ uint8# shift_bitscxx . . $ $anonymous_type_ea7f61dba9a6a9bb_1#shift_bits.; // signed 4-bit value |
| 17 | uint8cxx . . $ uint8# rotate_bitscxx . . $ $anonymous_type_ea7f61dba9a6a9bb_1#rotate_bits.; // same |
| 18 | } ArcadeCard_tcxx . . $ ArcadeCard_t#; |
| 19 | |
| 20 | class ArcadeCardcxx . . $ ArcadeCard# |
| 21 | { |
| 22 | public: |
| 23 | |
| 24 | ArcadeCardcxx . . $ ArcadeCard#ArcadeCard(49f6e7a06ebc5aa8).(void); |
| 25 | ~cxx . . $ ArcadeCard#`~ArcadeCard`(ced63f7c635d850d).ArcadeCardcxx . . $ ArcadeCard#(); |
| 26 | |
| 27 | void Powercxx . . $ ArcadeCard#Power(49f6e7a06ebc5aa8).(void); |
| 28 | int StateActioncxx . . $ ArcadeCard#StateAction(a45b884b8cf568d5).(StateMemcxx . . $ StateMem# *sm, int load, int data_only); |
| 29 | |
| 30 | uint8cxx . . $ uint8# Readcxx . . $ ArcadeCard#Read(caa7d1c0e7e3236b).(uint32cxx . . $ uint32# A, bool peek = false); // Pass peek as true if you don't want side-effects from this read(IE in a debugger). |
| 31 | void Writecxx . . $ ArcadeCard#Write(cc289a6b3dfc48da).(uint32cxx . . $ uint32# A, uint8cxx . . $ uint8# V); |
| 32 | |
| 33 | INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! void PhysWritecxx . . $ ArcadeCard#PhysWrite(cc289a6b3dfc48da).(uint32cxx . . $ uint32# A, uint8cxx . . $ uint8# V) |
| 34 | { |
| 35 | Writecxx . . $ ArcadeCard#Write(cc289a6b3dfc48da).(0x1a00 | ((A >> 9) & 0x30), V); |
| 36 | } |
| 37 | |
| 38 | INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! uint8cxx . . $ uint8# PhysReadcxx . . $ ArcadeCard#PhysRead(caa7d1c0e7e3236b).(uint32cxx . . $ uint32# A, bool peek = false) |
| 39 | { |
| 40 | return(Readcxx . . $ ArcadeCard#Read(caa7d1c0e7e3236b).(0x1a00 | ((A >> 9) & 0x30), peek)); |
| 41 | } |
| 42 | |
| 43 | |
| 44 | void PeekRAMcxx . . $ ArcadeCard#PeekRAM(f9255d7bf06fcbb).(uint32cxx . . $ uint32# Address, uint32cxx . . $ uint32# Length, uint8cxx . . $ uint8# *Buffer); |
| 45 | void PokeRAMcxx . . $ ArcadeCard#PokeRAM(ab4d47735551dc1b).(uint32cxx . . $ uint32# Address, uint32cxx . . $ uint32# Length, const uint8cxx . . $ uint8# *Buffer); |
| 46 | |
| 47 | private: |
| 48 | |
| 49 | ArcadeCard_tcxx . . $ ArcadeCard_t# ACcxx . . $ ArcadeCard#AC.; |
| 50 | |
| 51 | bool ACRAMUsedcxx . . $ ArcadeCard#ACRAMUsed.; |
| 52 | uint8cxx . . $ uint8# ACRAMcxx . . $ ArcadeCard#ACRAM.[0x200000]; |
| 53 | }; |
| 54 | |
| 55 | #endif |