Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## dioscuri.module.cpu32
Class IOPortHandler

    java.lang.Object
      dioscuri.module.cpu32.IOPortHandler

All Implemented Interfaces:
  HardwareComponent, Hibernatable, IOPortCapable

    public class IOPortHandler

extends java.lang.Object
implements IOPortCapable, HardwareComponent

Class for storing the I/O port map, and handling the required redirection.

Constructor Summary
`IOPortHandler()`

Method Summary
`void` | `acceptComponent(HardwareComponent component)`
`void` | `deregisterIOPortCapable(IOPortCapable device)`
`void` | `dumpState(java.io.DataOutput output)`
`boolean` | `initialised()`
`int` | `ioPortReadByte(int address)`
`int` | `ioPortReadLong(int address)`
`int` | `ioPortReadWord(int address)`
`int[]` | `ioPortsRequested()`
`void` | `ioPortWriteByte(int address, int data)`
`void` | `ioPortWriteLong(int address, int data)`
`void` | `ioPortWriteWord(int address, int data)`
`void` | `loadState(java.io.DataInput input)`
`java.lang.String` | `map()`
`void` | `registerIOPortCapable(IOPortCapable device)`
`boolean` | `reset()`
`boolean` | `setConnection(AbstractModule mod)`
`void` | `timerCallback()`
`java.lang.String` | `toString()`
`void` | `updateComponent(HardwareComponent component)`
`boolean` | `updated()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### IOPortHandler

    public IOPortHandler()

Method Detail

### setConnection

    public boolean setConnection(AbstractModule mod)

  Parameters:
    `mod` -
  Returns:
    -

### dumpState

    public void dumpState(java.io.DataOutput output)
                   throws java.io.IOException

  Specified by:
    `dumpState` in interface `HardwareComponent`
  Parameters:
    `output` -
  Throws:
    `java.io.IOException`

### loadState

    public void loadState(java.io.DataInput input)
                   throws java.io.IOException

  Specified by:
    `loadState` in interface `HardwareComponent`
  Parameters:
    `input` -
  Throws:
    `java.io.IOException`

### ioPortReadByte

    public int ioPortReadByte(int address)
                       throws ModuleException

  Specified by:
    `ioPortReadByte` in interface `IOPortCapable`
  Parameters:
    `address` -
  Returns:
    -
  Throws:
    `ModuleException`

### ioPortReadWord

    public int ioPortReadWord(int address)
                       throws ModuleException

  Specified by:
    `ioPortReadWord` in interface `IOPortCapable`
  Parameters:
    `address` -
  Returns:
    -
  Throws:
    `ModuleException`

### ioPortReadLong

    public int ioPortReadLong(int address)
                       throws ModuleException

  Specified by:
    `ioPortReadLong` in interface `IOPortCapable`
  Parameters:
    `address` -
  Returns:
    -
  Throws:
    `ModuleException`

### ioPortWriteByte

    public void ioPortWriteByte(int address,
                                int data)
                         throws ModuleException

  Specified by:
    `ioPortWriteByte` in interface `IOPortCapable`
  Parameters:
    `address` -
    `data` -
  Throws:
    `ModuleException`

### ioPortWriteWord

    public void ioPortWriteWord(int address,
                                int data)
                         throws ModuleException

  Specified by:
    `ioPortWriteWord` in interface `IOPortCapable`
  Parameters:
    `address` -
    `data` -
  Throws:
    `ModuleException`

### ioPortWriteLong

    public void ioPortWriteLong(int address,
                                int data)
                         throws ModuleException

  Specified by:
    `ioPortWriteLong` in interface `IOPortCapable`
  Parameters:
    `address` -
    `data` -
  Throws:
    `ModuleException`

### ioPortsRequested

    public int[] ioPortsRequested()

  Specified by:
    `ioPortsRequested` in interface `IOPortCapable`
  Returns:
    -

### registerIOPortCapable

    public void registerIOPortCapable(IOPortCapable device)

  Parameters:
    `device` -

### deregisterIOPortCapable

    public void deregisterIOPortCapable(IOPortCapable device)

  Parameters:
    `device` -

### map

    public java.lang.String map()

  Returns:
    -

### reset

    public boolean reset()

  Specified by:
    `reset` in interface `HardwareComponent`
  Returns:
    -

### initialised

    public boolean initialised()

  Specified by:
    `initialised` in interface `HardwareComponent`
  Returns:
    -

### acceptComponent

    public void acceptComponent(HardwareComponent component)

  Specified by:
    `acceptComponent` in interface `HardwareComponent`
  Parameters:
    `component` -

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### updateComponent

    public void updateComponent(HardwareComponent component)

  Specified by:
    `updateComponent` in interface `HardwareComponent`
  Parameters:
    `component` -

### updated

    public boolean updated()

  Specified by:
    `updated` in interface `HardwareComponent`
  Returns:
    -

### timerCallback

    public void timerCallback()

  Specified by:
    `timerCallback` in interface `HardwareComponent`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD