Implemented infinite loops
This commit is contained in:
parent
121f77fe76
commit
b6722c5482
9 changed files with 198 additions and 113 deletions
11
src/build/arch/x64/Jump.go
Normal file
11
src/build/arch/x64/Jump.go
Normal 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),
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue