Improved file structure

This commit is contained in:
2024-06-05 15:51:05 +02:00
parent 453b4d8956
commit 42a212a3f4
18 changed files with 106 additions and 378 deletions

View File

@ -1,13 +0,0 @@
package x64
// MoveRegNum32 moves a 32 bit integer into the given register.
func MoveRegNum32(code []byte, register uint8, number uint32) []byte {
return append(
code,
0xb8+register,
byte(number),
byte(number>>8),
byte(number>>16),
byte(number>>24),
)
}