reorder inline assembly to work with gcc optimizatoin

Fixes #7
gcc -O1 flag works