c65gm/internal/optimizer/debug.go

11 lines
326 B
Go

package optimizer
import "fmt"
// debugWithOriginals wraps the current state with a debug comment header
func debugWithOriginals(lines []asmLine, phase string) []asmLine {
header := fmt.Sprintf("; --- %s ---", phase)
result := []asmLine{{text: header, isComment: true}}
result = append(result, lines...)
return result
}