16 lines
173 B
Go
16 lines
173 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
code, err := Assemble(os.Stdin)
|
||
|
if err != nil {
|
||
|
fmt.Printf("Assembly failed: %s", err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
Run(code)
|
||
|
}
|