Wrote a function to abstract transforming parser output, and a parser for source operands (currently only works for registers)