|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectConsole
public class Console
Instances of this class represent console user interfaces to a simulated computer equipped with a Micro-1 processor.
Constructor Summary | |
---|---|
Console()
Constructs a processor and a memory with 256 cells |
|
Console(int cap)
Constructs a memory with specified number of cells, and constructs an associated processor. |
Method Summary | |
---|---|
void |
controlLoop()
This is the read-execute-print loop for the console. |
void |
help()
Displays synopsis of all commands in the console window |
void |
load(java.lang.String fName)
Loads hexadecimal numbers stored in fName into memory starting at address 0. |
static void |
main(java.lang.String[] args)
Creates a console (with memory and CPU), then starts the console's control loop. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Console(int cap)
cap
- the sepcified amount of memorypublic Console()
Method Detail |
---|
public void load(java.lang.String fName)
fName
- the name of a file containing hex numberspublic void help()
public void controlLoop()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |