Improved visualization of register usage
This commit is contained in:
parent
778c125d19
commit
548e3475fb
@ -19,8 +19,8 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error {
|
|||||||
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, t.Position)
|
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, t.Position)
|
||||||
}
|
}
|
||||||
|
|
||||||
f.RegisterRegister(asm.MOVE, register, variable.Register)
|
|
||||||
f.UseVariable(variable)
|
f.UseVariable(variable)
|
||||||
|
f.RegisterRegister(asm.MOVE, register, variable.Register)
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case token.Number, token.Rune:
|
case token.Number, token.Rune:
|
||||||
|
Loading…
Reference in New Issue
Block a user