|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--arche.Storage
|
+--arche.Stack
Stack as a structural element for processors. There is no error checking, you can read more than you actually have put. Of course the values will be periodical.
| Field Summary | |
private byte |
size
|
private byte |
sp
The stack pointer. |
private short[] |
stack
|
| Constructor Summary | |
Stack(int size_)
|
|
| Method Summary | |
void |
clear()
|
int |
getSize()
Returns the number of cells inside the storage. |
short |
read()
|
void |
write(short newvalue)
Sets the content to a new value. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private byte size
private short[] stack
private byte sp
| Constructor Detail |
public Stack(int size_)
| Method Detail |
public int getSize()
StoragegetSize in class Storagepublic short read()
read in class Storagepublic void write(short newvalue)
write in class Storagepublic void clear()
clear in class Storage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||