Added x86 package
Some checks failed
/ test (push) Failing after 14s

This commit is contained in:
Eduard Urbach 2025-06-23 11:43:09 +02:00
parent 31c5ed614c
commit 9b2b2578f5
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
57 changed files with 2661 additions and 0 deletions

7
src/x86/Return.go Normal file
View 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)
}