Added define operator
This commit is contained in:
parent
06d16b48da
commit
a4ecaf0622
9 changed files with 51 additions and 51 deletions
|
@ -1,6 +1,10 @@
|
|||
package asm
|
||||
|
||||
import "git.akyoto.dev/cli/q/src/build/cpu"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
)
|
||||
|
||||
// RegisterNumber operates with a register and a number.
|
||||
type RegisterNumber struct {
|
||||
|
@ -8,3 +12,8 @@ type RegisterNumber struct {
|
|||
Number uint64
|
||||
IsPointer bool
|
||||
}
|
||||
|
||||
// String returns a human readable version.
|
||||
func (data *RegisterNumber) String() string {
|
||||
return fmt.Sprintf("%s, %x", data.Register, data.Number)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue