mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 22:09:12 +00:00
21 lines
707 B
C#
21 lines
707 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Assembler.x86 {
|
|
public class MoveToDR6 : Cosmos.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);
|
|
}
|
|
}
|
|
}
|