Simple Machine

machine
Class RegisterSet.Ports

java.lang.Object
  extended by machine.RegisterSet.Ports
Enclosing class:
RegisterSet

public class RegisterSet.Ports
extends Object

Public access to register set as a indexed list of ports


Constructor Summary
RegisterSet.Ports()
           
 
Method Summary
 int get(int regIndex)
          Get the value stored by the specified register.
 void set(int regIndex, long value)
          Set a new value for the specific register to take on in the next cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterSet.Ports

public RegisterSet.Ports()
Method Detail

get

public int get(int regIndex)
        throws RegisterSet.InvalidRegisterNumberException
Get the value stored by the specified register.

Throws:
RegisterSet.InvalidRegisterNumberException

set

public void set(int regIndex,
                long value)
         throws RegisterSet.InvalidRegisterNumberException
Set a new value for the specific register to take on in the next cycle.

Throws:
RegisterSet.InvalidRegisterNumberException

Simple Machine

Copyright © 2010, 2011 Mike Feeley. All Rights Reserved.