16 lines
283 B
Go
16 lines
283 B
Go
package z
|
|
|
|
import (
|
|
"git.akyoto.dev/cli/q/src/build/asm"
|
|
"git.akyoto.dev/cli/q/src/build/cpu"
|
|
)
|
|
|
|
func (f *Compiler) Register(mnemonic asm.Mnemonic, a cpu.Register) {
|
|
f.Assembler.Register(mnemonic, a)
|
|
|
|
if mnemonic == asm.POP {
|
|
f.CurrentScope().Use(a)
|
|
}
|
|
|
|
f.postInstruction()
|
|
}
|