Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
12345678910111213141516package x86
import "git.urbach.dev/cli/q/src/cpu"
// PopRegister pops a value from the stack and saves it into the register.func PopRegister(code []byte, register cpu.Register) []byte { if register > 0b111 { code = append(code, REX(0, 0, 0, 1)) register &= 0b111 }
return append( code, 0x58+byte(register), )}