gary/debugger/main.go

23 lines
351 B
Go

package main
import (
"log"
"git.sentinel65x.com/dave/gary/debugger/memory"
"git.sentinel65x.com/dave/gary/debugger/serial"
)
func main() {
dbg, err := serial.Open()
if err != nil {
log.Fatalf("connecting to debugger: %v", err)
}
defer dbg.Close()
mem := memory.New(dbg, 128*1024)
if err := UI(mem); err != nil {
log.Fatal(err)
}
}