20chan / X86Sharp

X86 VM written in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X86Sharp

Build Tests

X86 VM written in C#, works on .Net Core 2.0

Separated from project AssemblySharp

Usage

VM vm = new VM();

Address addr = new Address(vm.Segments.SS, displacement: 0);
Span<byte> dword0to4 = vm.Memory.GetValue(addr, size: 4);
var mov = vm.Instruction.MOV;
ref uint refptr = ref dword0to4.NonPortableCast<byte, uint>()[0];
uint num = 0x12345678;

mov(ref refptr, ref num);
vm.Instruction.PUSH(ref vm.Registers.EAX);

The MIT License (MIT) Copyright (c) 2017 phillyai

About

X86 VM written in C#

License:MIT License


Languages

Language:C# 100.0%