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

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

public class HipoPRNInstruction
extends HipoInstruction

Imprime um valor da memória.

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

Field Summary
 
Fields inherited from class edu.usp.ime.hipo.hipomachine.HipoInstruction
pos, processor
 
Constructor Summary
HipoPRNInstruction(HipoProcessor processor, int pos)
          Construtor que simplesmente chama o construtor de HipoInstruction
 
Method Summary
 void execute()
          Realiza a impressão do valor da memória.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HipoPRNInstruction

public HipoPRNInstruction(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()
Realiza a impressão do valor da memória.