Feature: Add mov_rm32_r32 instruction & more expressive execution with CPU trace

This commit is contained in:
0x221E
2026-02-05 14:57:23 +01:00
parent ac6bf8cb46
commit caadd2f706
12 changed files with 120 additions and 25 deletions

View File

@@ -2,19 +2,25 @@
#include "Metal.h"
// nop
// mov eax, 0xF4
// mov ecx, 0x8000
// add [0x8010], eax
// mov edx, 0x8000
// mov [edx], eax
// add DWORD PTR [0x8011], eax
uint8_t test[] = {
0x90,
0xB8, 0xF4, 0x00, 0x00, 0x00,
0xB9, 0x00, 0x80, 0x00, 0x00,
0x01, 0x05, 0x10, 0x80, 0x00, 0x00,
0xBA, 0x00, 0x80, 0x00, 0x00,
0x89, 0x02,
0x01, 0x05, 0x18, 0x80, 0x00, 0x00,
0x00,
};
int main(int argc, char** argv) {
Metal metal;
metal.Upload2Memory(test, 17);
metal.Upload2Memory(test, 25);
metal.Run();
return 0;
}