20 lines
368 B
Go
Raw Normal View History

2024-06-10 13:51:39 +00:00
package asm
2024-06-15 09:36:57 +00:00
import (
"fmt"
"git.akyoto.dev/cli/q/src/build/cpu"
)
2024-06-10 13:51:39 +00:00
// RegisterNumber operates with a register and a number.
type RegisterNumber struct {
Register cpu.Register
Number uint64
IsPointer bool
}
2024-06-15 09:36:57 +00:00
// String returns a human readable version.
func (data *RegisterNumber) String() string {
return fmt.Sprintf("%s, %x", data.Register, data.Number)
}