Cosmos/source/Indy.IL2CPU/Assembler/x86/_Infra/Instruction.cs
2008-11-08 13:00:37 +00:00

25 lines
735 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
public abstract class Instruction : Indy.IL2CPU.Assembler.Instruction {
protected Instruction() { }
protected static string SizeToString(byte aSize) {
switch (aSize) {
case 8:
return "byte";
case 16:
return "word";
case 32:
return "dword";
case 64:
return "qword";
default:
throw new Exception("Invalid size: " + aSize);
}
}
}
}