2024-09-15 01:40:14 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
2024-09-17 00:43:36 +02:00
|
|
|
"git.sentinel65x.com/dave/gary/debugger/memory"
|
|
|
|
"git.sentinel65x.com/dave/gary/debugger/serial"
|
2024-09-15 01:40:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-09-17 00:43:36 +02:00
|
|
|
dbg, err := serial.Open()
|
2024-09-15 01:40:14 +02:00
|
|
|
if err != nil {
|
|
|
|
log.Fatalf("connecting to debugger: %v", err)
|
|
|
|
}
|
|
|
|
defer dbg.Close()
|
|
|
|
|
2024-09-17 01:10:17 +02:00
|
|
|
mem := memory.New(dbg, 4*1024)
|
2024-09-15 09:04:32 +02:00
|
|
|
|
2024-09-17 00:43:36 +02:00
|
|
|
if err := UI(mem); err != nil {
|
2024-09-15 09:04:32 +02:00
|
|
|
log.Fatal(err)
|
2024-09-15 01:40:14 +02:00
|
|
|
}
|
|
|
|
}
|