﻿using System;

namespace XSharp.Assembler.x86
{
    public class MoveToDR6 : XSharp.Assembler.Instruction {
    protected UInt32 mValue;

    public MoveToDR6(UInt32 aValue) {
      mValue = aValue;
    }

    // This is a hack for now to just get DR6 support. DR can only be used with move, so its best to keep it a separate
    // op anwyays and not give it general support in the register list.
    // We we clean up the assemblers take this into consideration.
    public override void WriteText(Assembler aAssembler, System.IO.TextWriter aOutput) {
      aOutput.WriteLine("mov DR6, " + mValue);
    }
  }
}
