Reduced memory usage

This commit is contained in:
Eduard Urbach 2024-06-28 10:28:23 +02:00
parent d77660cdb8
commit 9867550c11
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 42 additions and 36 deletions

View file

@ -64,7 +64,7 @@ func (f *Function) CompileTokens(body token.List) error {
if config.Verbose {
f.debug = append(f.debug, debug{
pos: len(f.Assembler.Instructions),
position: len(f.Assembler.Instructions),
instruction: instruction,
})
}
@ -233,7 +233,7 @@ func (f *Function) PrintAsm() {
ansi.Dim.Println("╭──────────────────────────────────────╮")
for i, x := range f.Assembler.Instructions {
instruction := f.debugLine(i)
instruction := f.instructionAt(i)
if instruction != nil {
ansi.Dim.Println("├──────────────────────────────────────┤")