Modify several inline assembly functions to compile (and run) with GCC

Add many improvements, but not yet functional.