Added define operator

This commit is contained in:
2024-06-15 11:36:57 +02:00
parent 65791ea5a1
commit cf696a6f10
9 changed files with 51 additions and 51 deletions

View File

@ -6,7 +6,7 @@ import "git.akyoto.dev/cli/q/src/build/cpu"
func (a *Assembler) MoveRegisterNumber(reg cpu.Register, number uint64) {
a.Instructions = append(a.Instructions, Instruction{
Mnemonic: MOVE,
Data: RegisterNumber{
Data: &RegisterNumber{
Register: reg,
Number: number,
IsPointer: false,
@ -18,7 +18,7 @@ func (a *Assembler) MoveRegisterNumber(reg cpu.Register, number uint64) {
func (a *Assembler) MoveRegisterAddress(reg cpu.Register, address Address) {
a.Instructions = append(a.Instructions, Instruction{
Mnemonic: MOVE,
Data: RegisterNumber{
Data: &RegisterNumber{
Register: reg,
Number: uint64(address),
IsPointer: true,