Improved code quality

This commit is contained in:
2025-02-20 16:55:17 +01:00
parent 9779476fe7
commit 36d0142573
12 changed files with 51 additions and 37 deletions

View File

@ -3,6 +3,7 @@ package asm
import (
"fmt"
"math"
"strconv"
"strings"
"git.akyoto.dev/cli/q/src/cpu"
@ -31,12 +32,12 @@ func (mem *Memory) Format(custom string) string {
tmp.WriteString("+")
}
tmp.WriteString(fmt.Sprint(mem.Offset))
tmp.WriteString(strconv.Itoa(int(mem.Offset)))
}
tmp.WriteString("], ")
tmp.WriteString(custom)
tmp.WriteString(", ")
tmp.WriteString(fmt.Sprint(mem.Length))
tmp.WriteString(strconv.Itoa(int(mem.Length)))
return tmp.String()
}