test asmtest with instruction list

This commit is contained in:
Michael McLoughlin
2018-11-24 14:20:04 -08:00
parent bec73ca7a1
commit 898d66c585
6 changed files with 37 additions and 23 deletions

View File

@@ -20,10 +20,10 @@ func NewAsmTest(cfg Config) Interface {
return &asmtest{cfg: cfg}
}
func (a *asmtest) Generate(is []*inst.Instruction) ([]byte, error) {
func (a *asmtest) Generate(is []inst.Instruction) ([]byte, error) {
p := &printer{}
p.Printf("# %s\n\n", a.cfg.GeneratedWarning())
p.Printf("// %s\n\n", a.cfg.GeneratedWarning())
a.sym = "\u00b7loadertest(SB)"
p.Printf("TEXT %s, 0, $0\n", a.sym)