You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package monkey |
|
|
|
// Assembles a jump to a function value |
|
func jmpToFunctionValue(to uintptr) []byte { |
|
return []byte{ |
|
0xBA, |
|
byte(to), |
|
byte(to >> 8), |
|
byte(to >> 16), |
|
byte(to >> 24), // mov edx,to |
|
0xFF, 0x22, // jmp DWORD PTR [edx] |
|
} |
|
}
|
|
|