Patch: Fix bus access alignment issue, modrm byte handler enhanced.

This commit is contained in:
0x221E
2026-02-04 22:28:36 +01:00
parent 4671a62ddf
commit b1a012fb82
14 changed files with 202 additions and 111 deletions

View File

@@ -2,13 +2,19 @@
#include "Metal.h"
// mov eax, 0xF4
// mov ecx, 0x800c
// add [ecx], eax
uint8_t test[] = {
0x90, 0xF4
0xB8, 0xF4, 0x00, 0x00, 0x00,
0xB9, 0x0c, 0x80, 0x00, 0x00,
0x01, 0x01,
0x00,
};
int main(int argc, char** argv) {
Metal metal;
metal.Upload2Memory(test, 2);
metal.Upload2Memory(test, 13);
metal.Run();
return 0;
}