|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.usp.ime.hipo.hipomachine.HipoInstruction
edu.usp.ime.hipo.hipomachine.instructions.HipoREMInstruction
public class HipoREMInstruction
Instrução que divide o valor da posição de memória dada pelo acumulador e guarda o resto no acumulador.
| Field Summary |
|---|
| Fields inherited from class edu.usp.ime.hipo.hipomachine.HipoInstruction |
|---|
pos, processor |
| Constructor Summary | |
|---|---|
HipoREMInstruction(HipoProcessor processor,
int pos)
Construtor que simplesmente chama o construtor de HipoInstruction |
|
| Method Summary | |
|---|---|
void |
execute()
Realiza a divisão e guarda o resto no acumulador |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HipoREMInstruction(HipoProcessor processor,
int pos)
processor - O processador a ser usadopos - A posição que a instrução afeta| Method Detail |
|---|
public void execute()
throws java.lang.Exception
java.lang.Exception - Caso ocorra uma divisão por zero lança uma excessão.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||