step8
Class R.Long

java.lang.Object
  extended by step8.R
      extended by step8.R.Long
Enclosing class:
R

public static class R.Long
extends R

describes a result in a general register.


Nested Class Summary
 
Nested classes/interfaces inherited from class step8.R
R.Float, R.Long
 
Field Summary
protected static boolean[] reg
          true if general register is in use.
static int regs
          number of general registers for integer arithmetic.
 
Fields inherited from class step8.R
rX
 
Constructor Summary
R.Long(Long number)
          loads a number into a new general register.
R.Long(String opcode, R left, Long right)
          combines a general register and a number.
R.Long(String opcode, R left, R right)
          combines two general registers.
 
Method Summary
 
Methods inherited from class step8.R
get, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regs

public static final int regs
number of general registers for integer arithmetic.

See Also:
Constant Field Values

reg

protected static boolean[] reg
true if general register is in use.

Constructor Detail

R.Long

public R.Long(Long number)
loads a number into a new general register.

Throws:
RuntimeException - if there is no register available.

R.Long

public R.Long(String opcode,
              R left,
              Long right)
combines a general register and a number.

Parameters:
left - general register.

R.Long

public R.Long(String opcode,
              R left,
              R right)
combines two general registers.

Parameters:
left - general register, used as result.
right - general register, freed.