parent
31c5ed614c
commit
9b2b2578f5
57 changed files with 2661 additions and 0 deletions
7
src/x86/Return.go
Normal file
7
src/x86/Return.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package x86
|
||||
|
||||
// Return transfers program control to a return address located on the top of the stack.
|
||||
// The address is usually placed on the stack by a Call instruction.
|
||||
func Return(code []byte) []byte {
|
||||
return append(code, 0xC3)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue