Reorganized file structure

This commit is contained in:
2024-06-10 15:51:39 +02:00
parent c7354b8613
commit 6fe30f31da
57 changed files with 431 additions and 614 deletions

View File

@ -0,0 +1,13 @@
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),
)
}