edu.usp.ime.hipo.hipomachine.instructions
Class HipoREVInstruction

java.lang.Object
  extended by edu.usp.ime.hipo.hipomachine.HipoInstruction
      extended by edu.usp.ime.hipo.hipomachine.instructions.HipoREVInstruction
All Implemented Interfaces:
Instruction

public class HipoREVInstruction
extends HipoInstruction

Instrução que inverte o valor do acumulador. Nesse caso pos não é utilizado.

Author:
Rafael Crivellari Saliba Schouery (schouery@gmail.com)

Field Summary
 
Fields inherited from class edu.usp.ime.hipo.hipomachine.HipoInstruction
pos, processor
 
Constructor Summary
HipoREVInstruction(HipoProcessor processor, int pos)
          Construtor que simplesmente chama o construtor de HipoInstruction
 
Method Summary
 void execute()
          Inverte o valor do acumulador.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HipoREVInstruction

public HipoREVInstruction(HipoProcessor processor,
                          int pos)
Construtor que simplesmente chama o construtor de HipoInstruction

Parameters:
processor - O processador a ser usado
pos - A posição que a instrução afeta
Method Detail

execute

public void execute()
Inverte o valor do acumulador.