-
-
Save fox-srt/c4f90ba74289af3ec894357a062e0e84 to your computer and use it in GitHub Desktop.
VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto target = fetch_value(vm, i->lparam_type, i->lparam); | |
auto nargs = vm->registers.rcx.qword; | |
// extract the arguments | |
... | |
// Invoke the api | |
auto result = syscall(target, ...); | |
// return the result to the bytecode environment | |
vm->registers.rax = result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment