Feature: Add mov_rm32_r32 instruction & more expressive execution with CPU trace
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user