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