Fasm implemented in Scala