Fixes #296 - Assembly resolution

As discussed with @gblock on Twitter. Might want to improve the testability so the unit test is all in memory and does not touch the disk, however I was unsure as to how it should be designed but I am happy to implement it with instruction :smile: