I object to the logic in this method; I'm so sick of having to unwrite parsing methods which are way too low-level. Performance is no consideration here, so please avail yourself of higher level tools than would be available in straight assembly. Something like this for instance.
```
def parse(v: String) = v split "\\D" map (s => try s.toInt catch { case _: NumberFormatException => -1 })
```
This method should be maybe three lines.