mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
[+] Added WriteOperands(register, register, destStream)
This commit is contained in:
parent
9897e9695d
commit
256bbafc8e
1 changed files with 6 additions and 2 deletions
|
|
@ -233,9 +233,13 @@ namespace Lost.JIT.AMD64
|
||||||
|
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
public static void WriteOperand(int opcode_ext, Registers register, Stream destStream)
|
public static void WriteOperand(int opcode_ext, Registers rm, Stream destStream)
|
||||||
{
|
{
|
||||||
destStream.WriteByte(ModRM(3, opcode_ext, register.GetIndex()));
|
destStream.WriteByte(ModRM(3, opcode_ext, rm.GetIndex()));
|
||||||
|
}
|
||||||
|
public static void WriteOperands(Registers dest, Registers source, Stream destStream)
|
||||||
|
{
|
||||||
|
destStream.WriteByte(ModRM(3, dest, source));
|
||||||
}
|
}
|
||||||
static byte Binary(int value)
|
static byte Binary(int value)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue