commit fe15699ecccf5136a4f81f9b70bfd8ebcd684124
parent 8f8872eabc1a3f234abd100f771f3d06ad95320b
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Fri, 5 Jul 2024 10:21:31 -0300
Minor: fixes print trying to get memory when it shouldn't
Diffstat:
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/debugger.go b/debugger.go
@@ -245,14 +245,15 @@ func printExpr(m machine.Machine, expr string, info *machine.ArchitectureInfo) {
// Not very pretty but (mostly) does the job.
switch info.WordWidth {
case 8:
- fmt.Printf("0x%02x", c)
+ fmt.Printf("0x%02x\n", c)
case 16:
- fmt.Printf("0x%04x", c)
+ fmt.Printf("0x%04x\n", c)
case 32:
- fmt.Printf("0x%08x", c)
+ fmt.Printf("0x%08x\n", c)
default:
- fmt.Printf("0x%016x", c)
+ fmt.Printf("0x%016x\n", c)
}
+ return
}
arr, err := getMemoryContentPrint(m, addr, length)
diff --git a/main.go b/main.go
@@ -14,7 +14,7 @@ import (
"github.com/gboncoffee/egg/sagui"
)
-const VERSION = "2.4.0"
+const VERSION = "2.4.1"
// Put new architetures here... (main.go:/switch architeture)
func listArchs() {