//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
// PLEASE DO NOT EDIT WITHOUT THE EXPLICIT CONSENT OF THE AUTHOR! \\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

package hlt.language.design.instructions;

/**
 * @version     Last modified on Wed Jun 20 14:29:51 2012 by hak
 * @author      <a href="mailto:hak@acm.org">Hassan A&iuml;t-Kaci</a>
 * @copyright   &copy; <a href="http://www.hassan-ait-kaci.net/">by the author</a>
 */

import hlt.language.design.types.Type;
import hlt.language.design.backend.Runtime;
import hlt.language.design.backend.DisplayFormManager;
import hlt.language.design.backend.DisplayDeviceManager;

public class WriteInt extends TypedInstruction
{
  public WriteInt (Type type)
    {
      super(type);
      setName("WRITE_I");
    }

  public final void execute (Runtime r)
    {
      r.displayDeviceManager().print(r.displayFormManager().unquotedDisplayForm(r.popInt(),
                                                                                _type));
      r.incIP();
    }
}
