23 lines
346 B
Go
23 lines
346 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, 768)
|
|
|
|
if err := UI(mem); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|