diff options
author | iximeow <me@iximeow.net> | 2015-03-11 16:46:19 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2015-03-11 16:46:19 -0700 |
commit | 83366e673d87ef9bc0bf6d4bd2a1023bb8b1185e (patch) | |
tree | 28ae5e2ed6d3b5ae5ec455dfedb223d929665179 /src | |
parent | 685f7123b9e206727b41a32f549312b33f67eba6 (diff) |
remove apply method
Diffstat (limited to 'src')
-rw-r--r-- | src/main.scala | 8 |
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")) } |