Implemented infinite loops

This commit is contained in:
Eduard Urbach 2024-06-24 11:00:32 +02:00
parent 121f77fe76
commit b6722c5482
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 198 additions and 113 deletions

View file

@ -0,0 +1,11 @@
package x64
// Jump continues program flow at the new address.
// The address is relative to the next instruction.
func Jump8(code []byte, address int8) []byte {
return append(
code,
0xeb,
byte(address),
)
}