jmce - 1_02

jmce.intel.mcs51
Class Ports

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.intel.mcs51.Ports
All Implemented Interfaces:
Hardware, Peripheral
Direct Known Subclasses:
Ports, Ports

public class Ports
extends AbstractPeripheral

Standard MCS51 ports.

This implements the standard 8051 , it work as a container for the class Port that really implements a single port.

Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
Ports()
           
Ports(int n)
           
 
Method Summary
 int getNumPort()
           
 Port getPort(int n)
           
 int getSfrM1(int n)
           
 int getSfrM2(int n)
           
 int getSfrP(int n)
           
 void init(Hardware parent)
          Initialize the hardware.
 void setDisableMask(int n, int mask)
           
 void setNumPort(int n)
           
 java.lang.String toString()
           
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, registerCPU, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Constructor Detail

Ports

public Ports(int n)

Ports

public Ports()
Method Detail

setNumPort

public void setNumPort(int n)

getNumPort

public int getNumPort()

getPort

public Port getPort(int n)

init

public void init(Hardware parent)
          throws SIMException
Description copied from interface: Hardware
Initialize the hardware. This method must be called before any use of the interface. Only set ... / get ... method are allowed to be called before the intialization.

Specified by:
init in interface Hardware
Overrides:
init in class AbstractHardware
Parameters:
parent - Parent of this hardware.
Throws:
SIMException

setDisableMask

public void setDisableMask(int n,
                           int mask)

getSfrP

public int getSfrP(int n)

getSfrM1

public int getSfrM1(int n)

getSfrM2

public int getSfrM2(int n)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractHardware

jmce - 1_02