|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--arche.Storage
|
+--arche.Register
Simple one-value register as a basic storage for processors.
| Field Summary | |
private short |
reg
For stroing the value. |
| Constructor Summary | |
Register()
|
|
| Method Summary | |
void |
clear()
|
int |
getSize()
Returns the size of the storage element, constant 1 for a register. |
short |
read()
Returns the value stored in this register. |
java.lang.String |
toString()
|
void |
write(short newvalue)
Sets the content to a new value. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private short reg
| Constructor Detail |
public Register()
| Method Detail |
public int getSize()
getSize in class Storagepublic short read()
read in class Storagepublic void write(short newvalue)
write in class Storagepublic void clear()
clear in class Storagepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||