step8
Class R.Float

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

public static class R.Float
extends R

describes a result in a floating point register.


Nested Class Summary
 
Nested classes/interfaces inherited from class step8.R
R.Float, R.Long
 
Field Summary
protected static boolean[] reg
          true if floating point register is in use.
static int regs
          number of registers for floating point arithmetic.
 
Fields inherited from class step8.R
rX
 
Constructor Summary
R.Float(Number number)
          loads a number into a new floating point register.
R.Float(R r)
          transfers a number into a new floating point register and frees the general register.
R.Float(String opcode, R left, Number right)
          combines a register and a number.
R.Float(String opcode, R left, R right)
          combines two 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 registers for floating point arithmetic.

See Also:
Constant Field Values

reg

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

Constructor Detail

R.Float

public R.Float(Number number)
loads a number into a new floating point register.

Throws:
RuntimeException - if there is no register available.

R.Float

public R.Float(R r)
transfers a number into a new floating point register and frees the general register.

Parameters:
r - general register.
Throws:
RuntimeException - if there is no register available.

R.Float

public R.Float(String opcode,
               R left,
               Number right)
combines a register and a number.

Parameters:
left - register, converted to floating point if necessary.

R.Float

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

Parameters:
left - register, converted to floating point, used as result.
right - register, converted as needed, freed.