Move source files to root dir

This commit is contained in:
lash
2023-04-12 18:09:37 +01:00
parent e340210d8f
commit df9b30287c
42 changed files with 0 additions and 0 deletions

28
dev/asm/asm.go Normal file
View File

@@ -0,0 +1,28 @@
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"git.defalsify.org/festive/asm"
)
func main() {
if (len(os.Args) < 2) {
os.Exit(1)
}
fp := os.Args[1]
v, err := ioutil.ReadFile(fp)
if err != nil {
fmt.Fprintf(os.Stderr, "read error: %v", err)
os.Exit(1)
}
n, err := asm.Parse(string(v), os.Stdout)
if err != nil {
fmt.Fprintf(os.Stderr, "parse error: %v", err)
os.Exit(1)
}
log.Printf("parsed total %v bytes", n)
}