q/src/x86/Return.go
Eduard Urbach 9b2b2578f5
Some checks failed
/ test (push) Failing after 14s
Added x86 package
2025-06-23 11:43:09 +02:00

7 lines
No EOL
233 B
Go

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)
}