CPort80 Class Reference

#include <Port80.h>

Inheritance diagram for CPort80:

Inheritance graph
[legend]
Collaboration diagram for CPort80:

Collaboration graph
[legend]

Detailed Description

Emulated port 80.

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...

Constructor & Destructor Documentation

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]

Destructor.

Definition at line 84 of file Port80.cpp.


Member Function Documentation

u64 CPort80::ReadMem ( int  index,
u64  address,
int  dsize 
) [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.

void CPort80::WriteMem ( int  index,
u64  address,
int  dsize,
u64  data 
) [virtual]

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.


Field Documentation


The documentation for this class was generated from the following files:

SourceForge.net Logo
Project space on SourceForge.net