#include <Port80.h>


Port 80 is a port without a real function, that is used to slow things down. Since our emulator is slow enough already ;-) this port has no function at all, but it needs to be there to avoid error messages about non-existing hardware.
Definition at line 74 of file Port80.h.
Public Member Functions | |
| CPort80 (CConfigurator *cfg, class CSystem *c) | |
| Constructor. | |
| virtual | ~CPort80 () |
| Destructor. | |
| virtual u64 | ReadMem (int index, u64 address, int dsize) |
| Read from port 80. | |
| virtual void | WriteMem (int index, u64 address, int dsize, u64 data) |
| Write to port 80. | |
| virtual int | SaveState (FILE *f) |
| Save state to a Virtual Machine State file. | |
| virtual int | RestoreState (FILE *f) |
| Restore state from a Virtual Machine State file. | |
Protected Attributes | |
| struct CPort80::SPort80_state | state |
Data Structures | |
| struct | SPort80_state |
| The state structure contains all elements that need to be saved to the statefile. More... | |
| CPort80::CPort80 | ( | CConfigurator * | cfg, | |
| class CSystem * | c | |||
| ) |
Constructor.
Definition at line 75 of file Port80.cpp.
References CPort80::SPort80_state::p80, CSystem::RegisterMemory(), state, and U64.
| CPort80::~CPort80 | ( | ) | [virtual] |
Read from port 80.
Returns the value last written to port 80.
Reimplemented from CSystemComponent.
Definition at line 91 of file Port80.cpp.
References CPort80::SPort80_state::p80, and state.
Write to port 80.
Reimplemented from CSystemComponent.
Definition at line 99 of file Port80.cpp.
References CPort80::SPort80_state::p80, and state.
| int CPort80::SaveState | ( | FILE * | f | ) | [virtual] |
Save state to a Virtual Machine State file.
Implements CSystemComponent.
Definition at line 110 of file Port80.cpp.
References CSystemComponent::devid_string, p80_magic1, p80_magic2, and state.
| int CPort80::RestoreState | ( | FILE * | f | ) | [virtual] |
Restore state from a Virtual Machine State file.
Implements CSystemComponent.
Definition at line 125 of file Port80.cpp.
References CSystemComponent::devid_string, p80_magic1, p80_magic2, and state.
struct CPort80::SPort80_state CPort80::state [protected] |
Referenced by CPort80(), ReadMem(), RestoreState(), SaveState(), and WriteMem().