2026-02-04 12:52:42 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include "Metal.h"
|
|
|
|
|
|
2026-02-05 14:57:23 +01:00
|
|
|
// nop
|
2026-02-04 22:28:36 +01:00
|
|
|
// mov eax, 0xF4
|
2026-02-04 22:48:20 +01:00
|
|
|
// mov ecx, 0x8000
|
2026-02-05 14:57:23 +01:00
|
|
|
// mov edx, 0x8000
|
|
|
|
|
// mov [edx], eax
|
|
|
|
|
// add DWORD PTR [0x8011], eax
|
2026-02-04 12:52:42 +01:00
|
|
|
uint8_t test[] = {
|
2026-02-05 14:57:23 +01:00
|
|
|
0x90,
|
2026-02-04 22:28:36 +01:00
|
|
|
0xB8, 0xF4, 0x00, 0x00, 0x00,
|
2026-02-04 22:48:20 +01:00
|
|
|
0xB9, 0x00, 0x80, 0x00, 0x00,
|
2026-02-05 14:57:23 +01:00
|
|
|
0xBA, 0x00, 0x80, 0x00, 0x00,
|
|
|
|
|
0x89, 0x02,
|
|
|
|
|
0x01, 0x05, 0x18, 0x80, 0x00, 0x00,
|
2026-02-04 22:28:36 +01:00
|
|
|
0x00,
|
2026-02-04 12:52:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
|
Metal metal;
|
2026-02-05 14:57:23 +01:00
|
|
|
metal.Upload2Memory(test, 25);
|
2026-02-04 12:52:42 +01:00
|
|
|
metal.Run();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|