Disassembler skeleton

This commit is contained in:
Ian Gulliver
2021-11-19 20:38:56 -10:00
parent 5ccf6832c8
commit 579ddab2de
7 changed files with 111 additions and 6 deletions

20
test/disasm_test.go Normal file
View File

@@ -0,0 +1,20 @@
package test
import "testing"
import "github.com/firestuff/subcoding/asm"
func TestRoundTrip(t *testing.T) {
prog, err := asm.AssembleString(`
functions:
- - [nop]
`)
if err != nil {
t.Fatal(err)
}
_, err = asm.Disassemble(prog)
if err != nil {
t.Fatal(err)
}
}