|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.usp.ime.hipo.core.Processor edu.usp.ime.hipo.hipomachine.HipoProcessor
public class HipoProcessor
Representa o Processador HIPO
Field Summary | |
---|---|
private MemoryCell |
accumulator
O acumulador. |
private HipoInstructionFactory |
factory
A f? |
private int |
IAR
Indica a posi?? |
private MemoryCell |
selectedMemoryCell
A c? |
Constructor Summary | |
---|---|
HipoProcessor(Memory memory,
In in,
Out out)
Cria um novo processador, definindo a mem? |
Method Summary | |
---|---|
void |
begin(int pos)
Come? |
boolean |
decode(MemoryCell mc)
Descobre qual instru?? |
MemoryCell |
getAccumulator()
|
HipoInstructionFactory |
getFactory()
|
int |
getIAR()
|
MemoryCell |
getSelectedMemoryCell()
|
void |
setAccumulator(MemoryCell accumulator)
|
void |
setFactory(HipoInstructionFactory factory)
|
void |
setIAR(int IAR)
|
void |
setSelectedMemoryCell(MemoryCell selectedMemoryCell)
|
Methods inherited from class edu.usp.ime.hipo.core.Processor |
---|
executeCurrentInstruction, getCurrentInstruction, getIn, getMemory, getOut, isExecuting, setCurrentInstruction, setExecuting, setIn, setMemory, setOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int IAR
private MemoryCell selectedMemoryCell
private MemoryCell accumulator
private HipoInstructionFactory factory
Constructor Detail |
---|
public HipoProcessor(Memory memory, In in, Out out)
memory
- A mem?ria a ser usadain
- A entrada a ser usadaout
- A sa?da a ser usadaMethod Detail |
---|
public void begin(int pos)
pos
- A posi??o inicial do IARpublic boolean decode(MemoryCell mc)
mc
- A mem?ria a ser analisada
public MemoryCell getAccumulator()
public void setAccumulator(MemoryCell accumulator)
public int getIAR()
public void setIAR(int IAR)
public MemoryCell getSelectedMemoryCell()
public void setSelectedMemoryCell(MemoryCell selectedMemoryCell)
public HipoInstructionFactory getFactory()
public void setFactory(HipoInstructionFactory factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |