Implemented parameters
This commit is contained in:
parent
51a2308179
commit
0d8891d8a7
6 changed files with 76 additions and 27 deletions
|
@ -101,7 +101,9 @@ func (f *Function) ExecuteRegisterRegister(operation token.Token, destination cp
|
|||
f.Assembler.RegisterRegister(asm.DIV, destination, source)
|
||||
|
||||
case "=":
|
||||
f.Assembler.RegisterRegister(asm.MOVE, destination, source)
|
||||
if destination != source {
|
||||
f.Assembler.RegisterRegister(asm.MOVE, destination, source)
|
||||
}
|
||||
|
||||
default:
|
||||
return errors.New(&errors.InvalidOperator{Operator: operation.Text()}, f.File, operation.Position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue