mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
[+] Added WriteOperands(reg, memory, destStream)
This commit is contained in:
parent
79676a9283
commit
8eea67169b
1 changed files with 4 additions and 0 deletions
|
|
@ -241,6 +241,10 @@ namespace Lost.JIT.AMD64
|
||||||
{
|
{
|
||||||
destStream.WriteByte(ModRM(3, dest, source));
|
destStream.WriteByte(ModRM(3, dest, source));
|
||||||
}
|
}
|
||||||
|
public static void WriteOperands(GeneralPurposeRegister reg, MemoryOperand memory, Stream destStream)
|
||||||
|
{
|
||||||
|
WriteOperand(reg.Register.GetIndex(), memory, destStream);
|
||||||
|
}
|
||||||
static byte Binary(int value)
|
static byte Binary(int value)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue