2026-02-04 12:52:42 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include "Metal.h"
|
|
|
|
|
|
2026-02-04 22:28:36 +01:00
|
|
|
// mov eax, 0xF4
|
2026-02-04 22:48:20 +01:00
|
|
|
// mov ecx, 0x8000
|
|
|
|
|
// add [ecx + 0x0010], eax
|
2026-02-04 12:52:42 +01:00
|
|
|
uint8_t test[] = {
|
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,
|
|
|
|
|
0x01, 0x81, 0x10, 0x00, 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-04 22:48:20 +01:00
|
|
|
metal.Upload2Memory(test, 17);
|
2026-02-04 12:52:42 +01:00
|
|
|
metal.Run();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|