From a79806f8671c105970790c310bcf049705c0d3b9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 22 Jun 2020 17:13:20 +0200 Subject: [PATCH] Fix debug output --- hal/instructions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/instructions.go b/hal/instructions.go index 1736eef..6d0c669 100644 --- a/hal/instructions.go +++ b/hal/instructions.go @@ -231,7 +231,7 @@ var InstructionDumpReg = &Instruction{ Name: "DUMPREG", Execute: func(module *Module) error { for index, content := range module.register { - module.debug("%d:\t%d", index, content) + module.debug("%d:\t%f", index, content) } return nil }, @@ -241,7 +241,7 @@ var InstructionDumpProg = &Instruction{ Name: "DUMPPROG", Execute: func(module *Module) error { for index, content := range module.programStorage { - module.debug("%d\t%s\t%d", index, content.Instruction.Name, content.Operand) + module.debug("%d\t%s\t%f", index, content.Instruction.Name, content.Operand) } return nil },