Improved label consistency
This commit is contained in:
@ -38,7 +38,9 @@ func (f *Function) CompileAssignDivision(node *ast.Assign) error {
|
||||
divisor := right.Children[1]
|
||||
err = f.Execute(right.Token, dividendRegister, divisor)
|
||||
f.RegisterRegister(asm.MOVE, quotientVariable.Register, x86.RAX)
|
||||
f.UseVariable(quotientVariable)
|
||||
f.RegisterRegister(asm.MOVE, remainderVariable.Register, x86.RDX)
|
||||
f.UseVariable(remainderVariable)
|
||||
|
||||
if isTemporary {
|
||||
f.FreeRegister(dividendRegister)
|
||||
|
Reference in New Issue
Block a user