Cosmos/source/Indy.IL2CPU.Assembler.X86/IDivide.cs
2008-01-05 16:23:46 +00:00

20 lines
479 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
/// <summary>
/// Puts the result of the divide into EAX, and the remainder in EDX
/// </summary>
[OpCode(0xFFFFFFFF, "idiv")]
public class IDivide: Instruction {
private string mSource;
public IDivide(string aSource) {
mSource = aSource;
}
public override string ToString() {
return "idiv " + mSource;
}
}
}