summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.scala b/src/main.scala
index 9dc5d42..f186597 100644
--- a/src/main.scala
+++ b/src/main.scala
@@ -1,10 +1,9 @@
package ixee.re.disasm
object main extends App {
- def apply: Unit = {
- def disassemble(bytes: Seq[String]): Seq[Option[Instruction]] = bytes.map(Instruction(_))
+ def disassemble(bytes: Seq[String]): Seq[Option[Instruction]] = bytes.map(Instruction(_))
- val bytes = """
+ val bytes = """
3140 0044 1542 5c01
75f3 35d0 085a 3f40
0000 0f93 0724 8245
@@ -22,6 +21,5 @@ f000 fd3f 3040 0a46
7a45 5f44 fcff 8f11
""".replace("\n", " ").split(" ").filter(_ != "")
- println(disassemble(bytes).flatten.mkString("\n"))
- }
+ println(disassemble(bytes).flatten.mkString("\n"))
}